Age | Commit message (Collapse) | Author | Files | Lines |
|
This patch updates `aarch64-sys-regs.def', bringing it into sync with
the Binutils source.
gcc/ChangeLog:
* config/aarch64/aarch64-sys-regs.def: Copy from Binutils.
|
|
When looking at the analyzer MEM_REF invalid second arg issue, I've noticed
tons of build_int_cst (integer_type_node, {0,1}) or build_zero_cst
(integer_type_node) cases.
That just wastes compile time (albeit not very much).
The following patch fixes what my sed script found.
2024-03-20 Jakub Jelinek <jakub@redhat.com>
gcc/analyzer/
* constraint-manager.cc (test_range, test_constraint_conditions,
test_constant_comparisons, test_constraint_impl, test_purging,
test_bits): Use integer_zero_node instead of
build_zero_cst (integer_type_node) or
build_int_cst (integer_type_node, 0) and integer_one_node instead of
build_int_cst (integer_type_node, 1).
* region-model.cc (region_model::get_store_value,
append_interesting_constants, test_array_1,
test_get_representative_tree, test_unique_constants, test_assignment,
test_stack_frames, test_constraint_merging, test_widening_constraints,
test_iteration_1, test_array_2): Likewise.
gcc/cp/
* coroutines.cc (expand_one_await_expression): Use
integer_zero_node instead of build_int_cst (integer_type_node, 0)
and integer_one_node instead of build_int_cst (integer_type_node, 1).
gcc/fortran/
* trans-array.cc (structure_alloc_comps): Use integer_zero_node
instead of build_zero_cst (integer_type_node) or
build_int_cst (integer_type_node, 0) and integer_one_node instead of
build_int_cst (integer_type_node, 1).
* trans-expr.cc (conv_scalar_char_value): Likewise.
* trans-stmt.cc (gfc_trans_form_team, gfc_trans_change_team,
gfc_trans_sync_team, gfc_trans_sync): Likewise.
* trans-decl.cc (create_main_function): Likewise.
* trans-intrinsic.cc (trans_this_image, conv_intrinsic_move_alloc):
Likewise.
* trans.cc (gfc_allocate_using_caf_lib, gfc_deallocate_with_status):
Likewise.
gcc/objc/
* objc-next-runtime-abi-02.cc (build_v2_class_ro_t_initializer): Use
integer_zero_node instead of build_int_cst (integer_type_node, 0).
|
|
For the m_var_msb (aka left shift) case of large/huge _BitInt bitfield loads
handle_load adds a PHI node, but I forgot to actually update the temporary
the code later on uses, so the PHI result was unused and the code
incorrectly used something that wasn't valid SSA form.
In particular, we emitted
if (_29 != 2)
goto <bb 4>; [80.00%]
else
goto <bb 5>; [20.00%]
<bb 4> [local count: 1073741824]:
_33 = VIEW_CONVERT_EXPR<unsigned long[3]>(s.D.2771)[_31];
<bb 5> [local count: 1073741824]:
# _34 = PHI <_33(4), 0(3)>
_35 = _32 >> 31;
_36 = _33 << 33;
_37 = _36 | _35;
_38 = _37 << _19;
where instead of _33 the _36 def stmt should be using _34.
Fixed thusly.
2024-03-20 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/114365
* gimple-lower-bitint.cc (bitint_large_huge::handle_load): When adding
a PHI node, set iv2 to its result afterwards.
* gcc.dg/bitint-102.c: New test.
|
|
This issues has been fixed by r14-9540-ge0e9499a in PR114151. Tested on
aarch64-linux-gnu.
gcc/testsuite/ChangeLog:
PR tree-optimization/114322
* gcc.dg/vect/pr114322.c: New testcase.
|
|
When looking at PR109596, I've noticed some comment typos.
2024-03-20 Jakub Jelinek <jakub@redhat.com>
* tree-ssa-loop-ch.cc (update_profile_after_ch): Fix comment typo:
probabbility -> probability.
(ch_base::copy_headers): Fix comment typo: itrations -> iterations.
|
|
On Sat, Jul 20, 2019 at 05:26:57PM +0100, Richard Sandiford wrote:
> Gerald Pfeifer <gerald@pfeifer.com> writes:
> > I have seen an increasing number of reports of GCC failing to
> > build with clang on powerpc (on FreeBSD, though that's probably
> > immaterial).
> >
> > Turns out that clang has vec_step as a reserved word on powerpc
> > with AltiVec.
> >
> > We OTOH use vec_step s as a variable name in gcc/tree-vect-loop.c.
> >
> >
> > The best approach I can see is to rename vec_step. Before I prepare
> > a patch: what alternate name/spelling would you prefer?
>
> Would it work to #define vec_step to vec_step_ or something on affected
> hosts, say in system.h?
>
> I'd prefer that to renmaing since "vec_step" does seem the most natural
> name for the variable. The equivalent scalar variable is "step" and
> other vector values in the surrounding code also use the "vec_" prefix.
So like this?
If/when clang finally fixes https://github.com/llvm/llvm-project/issues/85579
on their side, we can then limit it to clang versions which still have the
bug.
I've git grepped for vec_set and appart from altivec.h it is just used in
tree-vect-loop.cc, some Ada files which aren't preprocessed, ChangeLogs,
rs6000-vecdefines.h (but that header is only included from altivec.h and
vec_step is then redefined to the function-like macro) and in rs6000-overload.def
but that file is processed with a generator, not included in C/C++ sources.
2024-03-20 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/114369
* system.h (vec_step): Define to vec_step_ when compiling
with clang on PowerPC.
|
|
Following replacement of -param=riscv-autovec-preference with
-mrvv-vector-bits, this patch replaces -param=riscv-autovec-lmul with
-mrvv-max-lmul.
-param issue is mentioned in following links:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112648
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112651
Tested On RV64 and RV32, no regression.
PR target/112651
gcc/ChangeLog:
* config/riscv/riscv-opts.h (enum riscv_autovec_lmul_enum): Rename
(enum rvv_max_lmul_enum): Ditto
(TARGET_MAX_LMUL): Ditto
* config/riscv/riscv-v.cc (preferred_simd_mode): Ditto
* config/riscv/riscv-vector-costs.cc (costs::record_potential_unexpected_spills): Ditto
(costs::better_main_loop_than_p): Ditto
* config/riscv/riscv.opt: Replace -param=riscv-autovec-lmul with -mrvv-max-lmul
gcc/testsuite/ChangeLog:
* g++.target/riscv/rvv/autovec/bug-2.C: Replace option
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul-ice-1.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul-ice-2.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul-ice-3.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul-mixed-1.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul1-1.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul1-2.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul1-3.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul1-4.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul1-5.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul1-6.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul1-7.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul2-1.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul2-2.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul2-3.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul2-4.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul2-5.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul2-6.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul2-7.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul4-1.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul4-10.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul4-11.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul4-12.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul4-2.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul4-3.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul4-5.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul4-6.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul4-7.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul4-8.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul4-9.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul8-1.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul8-10.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul8-11.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul8-12.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul8-13.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul8-14.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul8-2.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul8-3.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul8-4.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul8-5.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul8-6.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul8-7.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul8-8.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul8-9.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/no-dynamic-lmul-1.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/pr111317.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/pr111848.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/pr113112-1.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/pr113112-2.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/pr113112-3.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/pr113112-4.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/pr113112-5.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/pr113247-1.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/pr113247-2.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/pr113281-3.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/pr113281-4.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/pr113281-5.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/pr114264.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/vla_vs_vls-10.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/vla_vs_vls-11.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/vla_vs_vls-12.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/vla_vs_vls-2.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/vla_vs_vls-3.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/vla_vs_vls-4.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/vla_vs_vls-5.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/vla_vs_vls-6.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/vla_vs_vls-7.c: Ditto
* gcc.dg/vect/costmodel/riscv/rvv/vla_vs_vls-9.c: Ditto
* gcc.target/riscv/rvv/autovec/bug-1.c: Ditto
* gcc.target/riscv/rvv/autovec/bug-2.c: Ditto
* gcc.target/riscv/rvv/autovec/bug-3.c: Ditto
* gcc.target/riscv/rvv/autovec/bug-4.c: Ditto
* gcc.target/riscv/rvv/autovec/bug-5.c: Ditto
* gcc.target/riscv/rvv/autovec/bug-8.c: Ditto
* gcc.target/riscv/rvv/autovec/cmp/cmp_vi-3.c: Ditto
* gcc.target/riscv/rvv/autovec/cmp/cmp_vi-4.c: Ditto
* gcc.target/riscv/rvv/autovec/cmp/cmp_vi-7.c: Ditto
* gcc.target/riscv/rvv/autovec/cmp/cmp_vi-8.c: Ditto
* gcc.target/riscv/rvv/autovec/cond/cond_widen_reduc-1.c: Ditto
* gcc.target/riscv/rvv/autovec/cond/cond_widen_reduc-2.c: Ditto
* gcc.target/riscv/rvv/autovec/cond/cond_widen_reduc_run-1.c: Ditto
* gcc.target/riscv/rvv/autovec/cond/cond_widen_reduc_run-2.c: Ditto
* gcc.target/riscv/rvv/autovec/fold-min-poly.c: Ditto
* gcc.target/riscv/rvv/autovec/partial/gimple_fold-1.c: Ditto
* gcc.target/riscv/rvv/autovec/partial/select_vl-2.c: Ditto
* gcc.target/riscv/rvv/autovec/partial/slp-1.c: Ditto
* gcc.target/riscv/rvv/autovec/partial/slp-16.c: Ditto
* gcc.target/riscv/rvv/autovec/partial/slp-17.c: Ditto
* gcc.target/riscv/rvv/autovec/partial/slp-18.c: Ditto
* gcc.target/riscv/rvv/autovec/partial/slp-19.c: Ditto
* gcc.target/riscv/rvv/autovec/partial/slp-2.c: Ditto
* gcc.target/riscv/rvv/autovec/partial/slp-3.c: Ditto
* gcc.target/riscv/rvv/autovec/partial/slp-4.c: Ditto
* gcc.target/riscv/rvv/autovec/partial/slp-5.c: Ditto
* gcc.target/riscv/rvv/autovec/partial/slp-6.c: Ditto
* gcc.target/riscv/rvv/autovec/pr112450.c: Ditto
* gcc.target/riscv/rvv/autovec/pr112598-1.c: Ditto
* gcc.target/riscv/rvv/autovec/pr112598-2.c: Ditto
* gcc.target/riscv/rvv/autovec/pr112694-1.c: Ditto
* gcc.target/riscv/rvv/autovec/pr112999.c: Ditto
* gcc.target/riscv/rvv/autovec/pr113393-2.c: Ditto
* gcc.target/riscv/rvv/autovec/series-1.c: Ditto
* gcc.target/riscv/rvv/autovec/series_run-1.c: Ditto
* gcc.target/riscv/rvv/autovec/slp-interleave-1.c: Ditto
* gcc.target/riscv/rvv/autovec/slp-interleave-2.c: Ditto
* gcc.target/riscv/rvv/autovec/slp-interleave-3.c: Ditto
* gcc.target/riscv/rvv/autovec/slp-interleave-4.c: Ditto
* gcc.target/riscv/rvv/autovec/unop/math-lroundf16-rv64-ice-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-10.c: Ditto
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-12.c: Ditto
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-13.c: Ditto
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-14.c: Ditto
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-8.c: Ditto
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-9.c: Ditto
* gcc.target/riscv/rvv/autovec/vls-vlmax/trailing-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls-vlmax/trailing-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls-vlmax/trailing_run-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls-vlmax/trailing_run-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/abs-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/abs-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/and-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/and-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/and-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/avg-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/avg-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/avg-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/avg-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/avg-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/avg-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/bswap16-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cmp-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cmp-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cmp-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cmp-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cmp-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cmp-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-merge-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-merge-10.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-merge-11.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-merge-12.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-merge-13.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-merge-14.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-merge-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-merge-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-merge-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-merge-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-merge-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-merge-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-merge-8.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/combine-merge-9.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/compress-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/compress-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/compress-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/compress-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/compress-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/compress-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_abs-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_add-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_add-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_and-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_convert-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_convert-10.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_convert-11.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_convert-12.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_convert-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_convert-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_convert-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_convert-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_convert-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_convert-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_convert-8.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_convert-9.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_copysign-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_div-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_div-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_ext-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_ext-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_ext-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_ext-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_ext-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_fma-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_fma-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_fms-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_fnma-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_fnma-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_fnms-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_ior-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_max-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_max-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_min-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_min-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_mod-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_mul-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_mul-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_mulh-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_narrow-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_narrow-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_neg-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_neg-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_not-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_shift-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_shift-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_sqrt-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_sub-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_sub-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_trunc-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_trunc-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_trunc-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_trunc-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_trunc-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_wadd-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_wadd-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_wadd-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_wadd-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_wfma-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_wfma-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_wfms-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_wfnma-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_wmul-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_wmul-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_wmul-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_wsub-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_wsub-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_wsub-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_wsub-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cond_xor-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/consecutive-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/consecutive-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/const-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/const-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/const-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/const-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/const-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/convert-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/convert-10.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/convert-11.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/convert-12.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/convert-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/convert-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/convert-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/convert-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/convert-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/convert-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/convert-8.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/convert-9.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/cvt-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/div-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/dup-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/dup-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/dup-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/dup-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/dup-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/dup-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/dup-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/ext-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/ext-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/ext-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/ext-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/ext-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/extract-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/extract-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-add-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-add-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-add-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-div-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-div-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-div-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-max-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-max-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-max-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-max-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-max-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-min-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-min-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-min-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-min-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-min-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-mul-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-mul-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-mul-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-sgnj-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-sgnj-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-sgnjx-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-sgnjx-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-sub-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-sub-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/floating-point-sub-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fma-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fma-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fma-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fma-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fma-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fma-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fma-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fms-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fms-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fms-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fnma-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fnma-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fnma-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fnma-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fnma-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fnma-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fnma-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fnms-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fnms-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/fnms-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/init-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/init-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/init-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/init-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/init-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/init-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/init-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/init-repeat-sequence-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/init-repeat-sequence-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/init-repeat-sequence-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/init-repeat-sequence-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/init-repeat-sequence-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/init-repeat-sequence-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/init-repeat-sequence-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/init-repeat-sequence-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/init-repeat-sequence-8.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/ior-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/ior-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/ior-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mask-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mask-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mask-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-ceil-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-floor-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-iceil-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-iceil-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-ifloor-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-ifloor-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-irint-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-irint-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-iround-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-iround-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lceil-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lceil-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lceil-rv32-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lceilf-rv64-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lfloor-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lfloor-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lfloor-rv32-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lfloorf-rv64-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-llceil-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-llceilf-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-llfloor-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-llfloorf-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-llrint-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-llrintf-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-llrintf16-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-llround-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-llroundf-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-llroundf16-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lrint-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lrint-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lrint-rv32-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lrintf-rv64-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lrintf16-rv32-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lrintf16-rv64-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lround-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lround-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lround-rv32-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lroundf-rv64-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lroundf16-rv32-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-lroundf16-rv64-0.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-nearbyint-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-rint-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-round-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-roundeven-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/math-trunc-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/max-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/merge-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/merge-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/merge-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/merge-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/merge-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/merge-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/merge-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/min-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/minus-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/minus-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/minus-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/misalign-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mod-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mov-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mov-10.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mov-11.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mov-12.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mov-13.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mov-14.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mov-15.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mov-16.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mov-17.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mov-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mov-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mov-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mov-8.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mov-9.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mulh-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/mult-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/narrow-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/narrow-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/narrow-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/neg-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/neg-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/not-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/perm-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/perm-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/perm-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/perm-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/perm-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/perm-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/perm-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/plus-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/plus-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/plus-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-10.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-11.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-12.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-13.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-14.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-15.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-16.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-17.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-18.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-19.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-20.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-21.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-8.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/reduc-9.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/repeat-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/repeat-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/repeat-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/repeat-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/repeat-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/repeat-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/repeat-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/repeat-8.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/repeat-9.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/series-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/series-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/series-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/series-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/shift-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/shift-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/shift-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/shift-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/shift-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/shift-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/spill-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/spill-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/spill-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/spill-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/spill-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/sqrt-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/trailing-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/trailing-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/trailing-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/trailing-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/trailing-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/trailing-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/trailing-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/trunc-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/trunc-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/trunc-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/trunc-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/trunc-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-10.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-11.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-12.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-13.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-14.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-15.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-16.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-17.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-18.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-19.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-20.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-21.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-22.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-5.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-6.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-7.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-8.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/vec-set-9.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wadd-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wadd-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wadd-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wadd-4.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wfma-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wfma-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wfma-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wfms-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wfnma-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wfnms-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wmul-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wmul-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wmul-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wred-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wred-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wred-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wsub-1.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wsub-2.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wsub-3.c: Ditto
* gcc.target/riscv/rvv/autovec/vls/wsub-4.c: Ditto
* gcc.target/riscv/rvv/autovec/widen/widen_reduc-1.c: Ditto
* gcc.target/riscv/rvv/autovec/widen/widen_reduc_order-2.c: Ditto
* gcc.target/riscv/rvv/autovec/zve32f-3.c: Ditto
* gcc.target/riscv/rvv/autovec/zve32x-3.c: Ditto
* gcc.target/riscv/rvv/autovec/zve64d-3.c: Ditto
* gcc.target/riscv/rvv/autovec/zve64f-3.c: Ditto
* gcc.target/riscv/rvv/autovec/zve64x-3.c: Ditto
* gcc.target/riscv/rvv/base/cpymem-1.c: Ditto
* gcc.target/riscv/rvv/base/cpymem-2.c: Ditto
* gcc.target/riscv/rvv/rvv.exp: Ditto
* gcc.target/riscv/rvv/vsetvl/pr111255.c: Ditto
* gcc.target/riscv/rvv/vsetvl/vsetvl_bug-1.c: Ditto
* gcc.target/riscv/rvv/vsetvl/vsetvl_bug-2.c: Ditto
Signed-off-by: demin.han <demin.han@starfivetech.com>
|
|
The following fixes bogus truncation of a value-range for an int128
array index when computing the maximum extent for a variable array
reference. Instead of possibly slowing things down by using
widest_int the following makes sure the range bounds fit within
the constraints offset_int were designed for.
PR middle-end/113396
* tree-dfa.cc (get_ref_base_and_extent): Use index range
bounds only if they fit within the address-range constraints
of offset_int.
* gcc.dg/torture/pr113396.c: New testcase.
|
|
These macros are completely same in definition, so we can keep the previous one
and eliminate later one.
gcc/ChangeLog:
* config/loongarch/loongarch.cc
(loongarch_hard_regno_mode_ok_uncached): Combine UNITS_PER_FP_REG and
UNITS_PER_FPREG macros.
(loongarch_hard_regno_nregs): Ditto.
(loongarch_class_max_nregs): Ditto.
(loongarch_get_separate_components): Ditto.
(loongarch_process_components): Ditto.
* config/loongarch/loongarch.h (UNITS_PER_FPREG): Ditto.
(UNITS_PER_HWFPVALUE): Ditto.
(UNITS_PER_FPVALUE): Ditto.
|
|
This function is always return true at the end of function implementation,
so the return value is useless.
gcc/ChangeLog:
* config/loongarch/lasx.md (vec_cmp<mode><mode256_i>): Remove checking
of loongarch_expand_vec_cmp()'s return value.
(vec_cmpu<ILASX:mode><mode256_i>): Ditto.
* config/loongarch/lsx.md (vec_cmp<mode><mode_i>): Ditto.
(vec_cmpu<ILSX:mode><mode_i>): Ditto.
* config/loongarch/loongarch-protos.h
(loongarch_expand_vec_cmp): Change loongarch_expand_vec_cmp()'s return
type from bool to void.
* config/loongarch/loongarch.cc (loongarch_expand_vec_cmp): Ditto.
|
|
This patch removes some unnecessary definitions of target hook functions
according to the documentation of GCC.
gcc/ChangeLog:
* config/loongarch/loongarch-protos.h
(loongarch_cfun_has_cprestore_slot_p): Delete.
(loongarch_adjust_insn_length): Delete.
(current_section_name): Delete.
(loongarch_split_symbol_type): Delete.
* config/loongarch/loongarch.cc
(loongarch_case_values_threshold): Delete.
(loongarch_spill_class): Delete.
(TARGET_OPTAB_SUPPORTED_P): Delete.
(TARGET_CASE_VALUES_THRESHOLD): Delete.
(TARGET_SPILL_CLASS): Delete.
|
|
When a diagnostic pragma changes the classification of a given diagnostic,
the global options flags (such as warn_narrowing, etc.) may get changed too.
Specifically, if a warning was not enabled initially and was later enabled
by a pragma, then the corresponding global flag will change from false to
true when the pragma is processed. That change is permanent and is not
undone by a subsequent `#pragma GCC diagnostic pop'; the warning flag needs
to remain enabled since a diagnostic could be generated later on for a
source location prior to the pop.
So in order to support popping to the initial classification, given that the
global options flags no longer reflect that state, the diagnostic_context
object itself remembers the way things were before it changed anything. The
current implementation works fine for diagnostics that are always errors or
always warnings, but it doesn't do the right thing for diagnostics that
could be either, such as -Wnarrowing. The classification of that diagnostic
(or any permerror diagnostic) depends on the state of -fpermissive; for the
particular case of -Wnarrowing it also matters whether a compile-time or
run-time narrowing is being diagnosed.
The problem is that the current implementation insists on recording whether
an enabled diagnostic should be a DK_WARNING or a DK_ERROR, and then, after
popping to the initial state, it overrides it always to that type only. Fix
that up by adding a new internal diagnostic type DK_ANY. This just indicates
that the diagnostic is enabled without mandating exactly what type of
diagnostic it should be. Then the diagnostic can be emitted with whatever
type the frontend asks for.
Incidentally, while making this change, I noticed that classify_diagnostic()
spends some time computing a return value (the old classification kind) that
is not used anywhere. The computed value seems to have some problems, mainly
that it does not take into account `#pragma GCC diagnostic pop' at all, and
so the returned value doesn't seem like it could make sense in many
contexts. Given it would also not be desirable to leak the new internal-only
DK_ANY type to outside callers, I think it would make sense in a subsequent
cleanup patch to remove the return value altogether.
gcc/ChangeLog:
PR c++/111918
* diagnostic-core.h (enum diagnostic_t): Add DK_ANY special flag.
* diagnostic.cc (diagnostic_option_classifier::classify_diagnostic):
Make use of DK_ANY to indicate a diagnostic was initially enabled.
(diagnostic_context::diagnostic_enabled): Do not change the type of
a diagnostic if the saved classification is type DK_ANY.
gcc/testsuite/ChangeLog:
PR c++/111918
* g++.dg/cpp0x/Wnarrowing21a.C: New test.
* g++.dg/cpp0x/Wnarrowing21b.C: New test.
* g++.dg/cpp0x/Wnarrowing21c.C: New test.
* g++.dg/cpp0x/Wnarrowing21d.C: New test.
|
|
|
|
Even though we have had code to handle creation of indirect call graph
edges (so that these calls can than be made direct as part of IPA-CP
and inlining and eventually also inlined) for C++ member pointers for
many years, it turns out that it does not work for lambdas and that it
has been severely broken since GCC 10 when the base class has virtual
functions.
Lambdas don't work because the code cannot work with structures
representing member function pointers because they are passed by
reference instead by value and the code was not ready for that.
The presence of virtual methods broke thinks because at some point C++
FE got clever and stopped emitting the check for virtual methods when
the base class does not have any and that in turn made our existing
testcases not test the necessary pattern matching code. The pattern
matcher had a small bug which did not matter before
r10-917-g3b47da42de621c but did afterwards.
This patch changes the pattern matcher to match both of these cases.
gcc/ChangeLog:
2024-03-06 Martin Jambor <mjambor@suse.cz>
PR ipa/108802
PR ipa/114254
* ipa-prop.cc (ipa_get_stmt_member_ptr_load_param): Fix case looking
at COMPONENT_REFs directly from a PARM_DECL, also recognize loads from
a pointer parameter.
(ipa_analyze_indirect_call_uses): Also recognize loads from a pointer
parameter, also recognize the case when pfn pointer is loaded in its
own BB.
gcc/testsuite/ChangeLog:
2024-03-06 Martin Jambor <mjambor@suse.cz>
PR ipa/108802
PR ipa/114254
* g++.dg/ipa/iinline-4.C: New test.
* g++.dg/ipa/pr108802.C: Likewise.
|
|
This test fails in C++11 due to:
linkage-1.C:3:8: error: 'f' function uses 'auto' type specifier without trailing return type
3 | inline auto f() {
| ^~~~
linkage-1.C:3:8: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
Compile it in C++14 thus.
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/linkage-1.C: Use target c++14.
|
|
LRA removed insn setting equivalence to memory whose output was
reloaded. This resulted in writing an uninitiated value to the memory
which triggered assert in LRA code checking the final generated code.
This patch fixes the problem. Comment in the patch contains more
details about the problem and its solution.
gcc/ChangeLog:
PR target/99829
* lra-constraints.cc (lra_constraints): Prevent removing insn
with reverse equivalence to memory if the memory was reloaded.
|
|
* de.po: Update.
|
|
gcc/analyzer/ChangeLog
PR analyzer/113505
* region-model.cc (get_tree_for_byte_offset,
region_model::get_representative_path_var_1,
test_mem_ref, test_POINTER_PLUS_EXPR_then_MEM_REF): Use
char __attribute__((may_alias)) * as type of MEM_REF second argument.
gcc/testsuite/ChangeLog
PR analyzer/113505
* gcc.dg/analyzer/pr113505.c: New test.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
|
|
Various values of -fdiagnostics-format= request machine-readable output
on stderr, using JSON, but in various places we use fnotice to write
free-form text to stderr, such as "compilation terminated", leading to
corrupt JSON.
Fix by having fnotice skip the output for such cases.
gcc/ChangeLog:
PR middle-end/114348
* diagnostic-format-json.cc
(json_stderr_output_format::machine_readable_stderr_p): New.
(json_file_output_format::machine_readable_stderr_p): New.
* diagnostic-format-sarif.cc
(sarif_stream_output_format::machine_readable_stderr_p): New.
(sarif_file_output_format::machine_readable_stderr_p): New.
* diagnostic.cc (diagnostic_context::action_after_output): Move
"fnotice" to before "finish" call, so that we still have the
diagnostic_context.
(fnotice): Bail out if the user requested one of the
machine-readable diagnostic output formats on stderr.
* diagnostic.h
(diagnostic_output_format::machine_readable_stderr_p): New pure
virtual function.
(diagnostic_text_output_format::machine_readable_stderr_p): New.
(diagnostic_context::get_output_format): New accessor.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
|
|
Given the recent change with adding the scheduler pipeline descriptions,
many scan-dump failures emerged. Relax the expected assembler output
conditions on the affected tests to reduce noise.
gcc/testsuite/ChangeLog:
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul4-6.c: Disable scheduling
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul4-8.c: Ditto
* gcc.target/riscv/rvv/base/pr108185-1.c: Update test expectancies
* gcc.target/riscv/rvv/base/pr108185-2.c: Ditto
* gcc.target/riscv/rvv/base/pr108185-3.c: Ditto
* gcc.target/riscv/rvv/base/pr108185-4.c: Ditto
* gcc.target/riscv/rvv/base/pr108185-5.c: Ditto
* gcc.target/riscv/rvv/base/pr108185-6.c: Ditto
* gcc.target/riscv/rvv/base/pr108185-7.c: Ditto
* gcc.target/riscv/rvv/base/vcreate.c: Disable scheduling and update
test expectancies
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-30.c: Disable scheduling
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-31.c: Ditto
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-17.c: Update test
expectancies
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-18.c: Ditto
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-10.c: Ditto
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-11.c: Ditto
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-12.c: Ditto
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-4.c: Ditto
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-5.c: Ditto
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-6.c: Ditto
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-7.c: Ditto
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-8.c: Ditto
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-9.c: Ditto
Signed-off-by: Edwin Lu <ewlu@rivosinc.com>
|
|
We assume that TYPE_NO_NAMED_ARGS_STDARG_P don't have any named arguments and
there is nothing to advance, but that is not the case for (...) functions
returning by hidden reference which have one such artificial argument.
This causes gcc.dg/c23-stdarg-[68].c to fail
Fix the issue by checking if arg.type is NULL as r14-9503-g218d1749612
explains
Tested on linux rv64gcv.
gcc/ChangeLog:
PR target/114175
* config/riscv/riscv.cc (riscv_setup_incoming_varargs): Only skip
riscv_funciton_arg_advance for TYPE_NO_NAMED_ARGS_STDARG_P functions
if arg.type is NULL
|
|
This is a generated header but regenerating it requires the manual step
of running 'make -C include update-version' in the libstdc++ build dir.
Make it regenerate automatically when --enable-maintainer-mode is used.
libstdc++-v3/ChangeLog:
* include/Makefile.am [MAINTAINER_MODE]: Add target to
automatically update <bits/version.h>.
* include/Makefile.in: Regenerate.
gcc/ChangeLog:
* doc/install.texi (Prerequisites): Document use of autogen for
libstdc++.
|
|
In r14-1497-gef768035ae8090 I added some support to the analyzer for
__atomic_ builtins (enough to fix false positives I was seeing in
my integration tests).
Unfortunately I messed up the implementation of
__atomic_{exchange,load,store}, leading to ICEs seen in
PR analyzer/114286.
Fixed thusly, fixing the ICEs. Given that we're in stage 4, the patch
doesn't add support for any of the various __atomic_compare_exchange
builtins, so that these continue to fall back to the analyzer's
"anything could happen" handling of unknown functions.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/analyzer/ChangeLog:
PR analyzer/114286
* kf.cc (class kf_atomic_exchange): Reimplement based on signature
seen in gimple, rather than user-facing signature.
(class kf_atomic_load): Likewise.
(class kf_atomic_store): New.
(register_atomic_builtins): Register kf_atomic_store.
gcc/testsuite/ChangeLog:
PR analyzer/114286
* c-c++-common/analyzer/atomic-builtins-pr114286.c: New test.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
|
|
The intent of the test is to show that we find a framework that
is installed in /System/Library/Frameworks when the user has added
a '-F' option. The trick is to choose some header that is present
for all the Darwin versions we support and that does not contain any
content we cannot parse. We had been using the Kernel framework for
this, but recent SDK versions have revealed that this is not suitable.
Replacing with a use of IOKit.
PR target/114049
gcc/testsuite/ChangeLog:
* gcc.dg/framework-1.c: Use an IOKit header instead of a
Kernel one.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
|
|
The following reverts the chrec_fold_multiply fix and only keeps
handling of constant overflow which keeps the original testcase
fixed. A better solution might involve ranger improvements or
tracking of assumptions during SCEV analysis similar to what niter
analysis does.
PR tree-optimization/114151
PR tree-optimization/114269
PR tree-optimization/114322
PR tree-optimization/114074
* tree-chrec.cc (chrec_fold_multiply): Restrict the use of
unsigned arithmetic when actual overflow on constant operands
is observed.
* gcc.dg/pr68317.c: Revert last change.
|
|
Like for x86-64, alpha or rs6000, arc seems to be affected too.
2024-03-19 Jakub Jelinek <jakub@redhat.com>
PR target/114175
* config/arc/arc.cc (arc_setup_incoming_varargs): Only skip
arc_function_arg_advance for TYPE_NO_NAMED_ARGS_STDARG_P functions
if arg.type is NULL.
|
|
We were assuming TYPE_NO_NAMED_ARGS_STDARG_P don't have any named
arguments and there is nothing to advance, but that is not the case
for (...) functions returning by hidden reference which have one such
artificial argument. This is causing gcc.dg/c23-stdarg-6.c and
gcc.dg/c23-stdarg-8.c to fail.
Fix the issue by checking if arg.type is NULL, as r14-9503 explains.
gcc/ChangeLog:
PR target/114175
* config/loongarch/loongarch.cc
(loongarch_setup_incoming_varargs): Only skip
loongarch_function_arg_advance for TYPE_NO_NAMED_ARGS_STDARG_P
functions if arg.type is NULL.
|
|
The testcase in this PR shows that we would load from an uninitialized
location, because the vld1 instrinsics are reported as "const". This
is because function_instance::reads_global_state_p() does not take
CP_READ_MEMORY into account. Fixing this gives vld1 the "pure"
attribute instead, and solves the problem.
2024-03-15 Christophe Lyon <christophe.lyon@linaro.org>
PR target/114323
gcc/
* config/arm/arm-mve-builtins.cc
(function_instance::reads_global_state_p): Take CP_READ_MEMORY
into account.
gcc/testsuite/
* gcc.target/arm/mve/pr114323.c: New.
|
|
Like in the r14-9503 change on x86-64, I think Alpha also needs to
function_arg_advance after the hidden return pointer argument if
any.
At least, the following patch changes the assembly of s1-s6 functions
on the https://gcc.gnu.org/pipermail/gcc-patches/2024-March/647956.html
c23-stdarg-9.c testcase, and eyeballing the assembly for int f8 (...)
the ... args are passed in 16..21 registers and then on the stack,
while for struct S s8 (...) have hidden return pointer passed in 16
register and ... args in 17..21 registers and then on the stack, and
seems without this patch the incoming varargs setup does the wrong thing
(but I can't test on alpha easily).
Many targets seem to be unaffected, e.g. aarch64, arm, s390*, so I'm not
trying to change all targets together because such a change clearly isn't
needed e.g. for targets which use special register for the hidden return
pointer.
2024-03-19 Jakub Jelinek <jakub@redhat.com>
PR target/114175
* config/alpha/alpha.cc (alpha_setup_incoming_varargs): Only skip
function_arg_advance for TYPE_NO_NAMED_ARGS_STDARG_P functions
if arg.type is NULL.
|
|
The c23-stdarg-8.c test (as well as the new test below added to cover even
more cases) FAIL on powerpc64le-linux and presumably other powerpc* targets
as well.
Like in the r14-9503-g218d174961 change on x86-64 we need to advance
next_cum after the hidden return pointer argument even in case where
there are no user arguments before ... in C23.
The following patch does that.
There is another TYPE_NO_NAMED_ARGS_STDARG_P use later on:
if (!TYPE_NO_NAMED_ARGS_STDARG_P (TREE_TYPE (current_function_decl))
&& targetm.calls.must_pass_in_stack (arg))
first_reg_offset += rs6000_arg_size (TYPE_MODE (arg.type), arg.type);
but I believe it was added there in r13-3549-g4fe34cdc unnecessarily,
when there is no hidden return pointer argument, arg.type is NULL and
must_pass_in_stack_var_size as well as must_pass_in_stack_var_size_or_pad
return false in that case, and for the TYPE_NO_NAMED_ARGS_STDARG_P
case with hidden return pointer argument that argument should have pointer
type and it is the first argument, so must_pass_in_stack shouldn't be true
for it either.
2024-03-19 Jakub Jelinek <jakub@redhat.com>
PR target/114175
* config/rs6000/rs6000-call.cc (setup_incoming_varargs): Only skip
rs6000_function_arg_advance_1 for TYPE_NO_NAMED_ARGS_STDARG_P functions
if arg.type is NULL.
* gcc.dg/c23-stdarg-9.c: New test.
|
|
c_omp_check_loop_binding_exprs with check_loop_binding_expr was composing
diagnostics from a format string with %s that provided additional words (but not
keywords). That is a big no no for translations, both because the translator
can't choose a different word order and because the %s part wasn't translated
at all (would need to use _("...") to get translated), so this patch rewrites it
such that the whole messages are in the format strings.
2024-03-19 Jakub Jelinek <jakub@redhat.com>
PR c/114364
* c-omp.cc (enum check_loop_binding_expr_ctx): New type.
(check_loop_binding_expr): Remove context argument, add ctx
argument with check_loop_binding_expr_ctx type at the end. Don't
create diagnostic message from multiple pieces.
(c_omp_check_loop_binding_exprs): Adjust callers.
|
|
We cannot currently handle permutations of mask loads in code generation
or permute optimization. But we simply drop any permutation on the
floor, so the following instead rejects the SLP build rather than
producing wrong-code. I've also made sure to reject them in
vectorizable_load for completeness.
PR tree-optimization/114375
* tree-vect-slp.cc (vect_build_slp_tree_2): Compute the
load permutation for masked loads but reject it when any
such is necessary.
* tree-vect-stmts.cc (vectorizable_load): Reject masked
VMAT_ELEMENTWISE and VMAT_STRIDED_SLP as those are not
supported.
* gcc.dg/vect/vect-pr114375.c: New testcase.
|
|
Spec: github.com/openhwgroup/core-v-sw/blob/master/specifications/corev-builtin-spec.md
Contributors:
Mary Bennett <mary.bennett@embecosm.com>
Nandni Jamnadas <nandni.jamnadas@embecosm.com>
Pietra Ferreira <pietra.ferreira@embecosm.com>
Charlie Keaney
Jessica Mills
Craig Blackmore <craig.blackmore@embecosm.com>
Simon Cook <simon.cook@embecosm.com>
Jeremy Bennett <jeremy.bennett@embecosm.com>
Helene Chelin <helene.chelin@embecosm.com>
gcc/ChangeLog:
* common/config/riscv/riscv-common.cc: Create XCVbi extension
support.
* config/riscv/riscv.opt: Likewise.
* config/riscv/corev.md: Implement cv_branch<mode> pattern
for cv.beqimm and cv.bneimm.
* config/riscv/riscv.md: Add CORE-V branch immediate to RISC-V
branch instruction pattern.
* config/riscv/constraints.md: Implement constraints
cv_bi_s5 - signed 5-bit immediate.
* config/riscv/predicates.md: Implement predicate
const_int5s_operand - signed 5 bit immediate.
* doc/sourcebuild.texi: Add XCVbi documentation.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/cv-bi-beqimm-compile-1.c: New test.
* gcc.target/riscv/cv-bi-beqimm-compile-2.c: New test.
* gcc.target/riscv/cv-bi-bneimm-compile-1.c: New test.
* gcc.target/riscv/cv-bi-bneimm-compile-2.c: New test.
* lib/target-supports.exp: Add proc for XCVbi.
|
|
This patch add XiangShan Nanhu cpu microarchitecture,
Nanhu is a 6-issue, superscalar, out-of-order processor.
More details see: https://xiangshan-doc.readthedocs.io/zh-cn/latest/arch
gcc/ChangeLog:
* config/riscv/riscv-cores.def (RISCV_TUNE): New def.
(RISCV_CORE): Ditto.
* config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New
option.
* config/riscv/riscv.cc: New def.
* config/riscv/riscv.md: New include.
* config/riscv/xiangshan.md: New file.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/mcpu-xiangshan-nanhu.c: New test.
Co-Authored by: Lin Jiawei <jiawei.lin@epfl.ch>
|
|
When testing the changes for PR c++/112631 we discovered that currently
we don't emit definitions of block-scope function declarations if
they're not used in the module interface TU, which causes issues if they
are used by importers.
This patch fixes the handling of no-linkage declarations for C++20. In
particular, a type declared in a function with vague linkage or declared
in a module CMI could potentially be accessible outside its defining TU,
and as such we can't assume that function declarations using that type
can never be defined in another TU.
A complication with handling this is that we're only strictly interested
in declarations with a module CMI, but when parsing the global module
fragment we don't yet know whether or not this module will have a CMI
until we reach the "export module" line (or not). Since this case is
IFNDR anyway (by [basic.def.odr] p11) we just tentatively assume while
parsing the GMF that this module will have a CMI; once we see (or don't
see) an 'export module' declaration we can commit to that knowledge for
future declarations.
gcc/cp/ChangeLog:
* cp-tree.h (module_maybe_has_cmi_p): New function.
* decl.cc (grokfndecl): Mark block-scope functions as public if
they could be visible in other TUs.
* decl2.cc (no_linkage_error): Don't error for declarations that
could be defined in other TUs since C++20. Suppress duplicate
errors from 'check_global_declaration'.
* tree.cc (no_linkage_check): In relaxed mode, don't consider
types in a module CMI to have no linkage.
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/linkage-1.C: New test.
* g++.dg/modules/block-decl-3.h: New test.
* g++.dg/modules/block-decl-3_a.C: New test.
* g++.dg/modules/block-decl-3_b.C: New test.
* g++.dg/modules/block-decl-3_c.C: New test.
* g++.dg/modules/linkage-1_a.C: New test.
* g++.dg/modules/linkage-1_b.C: New test.
* g++.dg/modules/linkage-1_c.C: New test.
* g++.dg/modules/linkage-2.C: New test.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Reviewed-by: Jason Merrill <jason@redhat.com>
|
|
|
|
Signed-off-by: Jonathan Yong <10walls@gmail.com>
gcc/testsuite:
* c-c++-common/Wrestrict.c: Fix typos in comments and
enable for LLP64 testing.
|
|
[PR110902,PR110928,PR111305,PR111441]
Various analyzer ICEs in our bugzilla relate to sloppy use of types
within bounds-checking.
The bounds-checking code works by comparing symbolic *bit* offsets, and
we don't have a good user-facing type that can represent such an offset
(ptrdiff_type_node is for *byte* offsets).
ana::svalue doesn't enforce valid combinations of types for things like
binary operations. When I added the access diagrams for GCC 14, this
could lead to attempts to generate trees for such svalues, leading to
trees with invalid combinations of types (e.g. PLUS_EXPR or MULT_EXPR of
incompatible types), leading to ICEs inside the tree folding logic.
I tried two approaches to fixing this.
My first approach was to fix the type-handling throughout the
bounds-checking code to use correct types, using size_type_node for
sizes, ptrdiff_type_node for byte offsets, and trying ptrdiff_type_node
for bit offsets. I implemented this, and it fixed the crashes, but
unfortunately it led to:
(a) numerous false negatives from the bounds-checking code, due to it
becoming unable to be sure that the accessed offset was beyond the valid
bounds, due to the expressions involved gaining complicated sets of
nested casts.
(b) ugly access diagrams full of nested casts (for capacities, gap
measurements, etc)
So my second approach, implemented in this patch, is to accept that we
don't have a tree type for representing bit offsets. The patch
represents bit offsets using "typeless" symbolic values i.e. ones for
which get_type () is NULL_TREE, and implements enough support for basic
arithemetic as if these are mathematical integers (albeit ones for which
concrete values within an expression must fit within a signed wide int).
Such values can't be converted to tree, so the patch avoids such
conversions, instead implementing a new svalue::maybe_print_for_user for
printing them to a pretty_printer. The patch uses ptrdiff_type_node for
byte offsets.
Doing so fixes the crashes, whilst appearing to preserve the behavior of
-Wanalyzer-out-of-bounds in my testing.
gcc/analyzer/ChangeLog:
PR analyzer/110902
PR analyzer/110928
PR analyzer/111305
PR analyzer/111441
* access-diagram.cc: Include "analyzer/analyzer-selftests.h".
(get_access_size_str): Reimplement for conversion of
implmementation of bit_size_expr from tree to const svalue &. Use
svalue::maybe_print_for_user rather than tree printing routines.
(remove_ssa_names): Make non-static.
(bit_size_expr::get_formatted_str): Rename to...
(bit_size_expr::maybe_get_formatted_str): ...this, adding "model"
param and converting return type to a unique_ptr. Update for
conversion of implementation of bit_size_expr from tree to
const svalue &. Use svalue::maybe_print_for_user rather than tree
printing routines.
(bit_size_expr::print): Rename to...
(bit_size_expr::maybe_print_for_user): ...this, adding "model"
param and converting return type to bool. Update for
conversion of implementation of bit_size_expr from tree to
const svalue &. Use svalue::maybe_print_for_user rather than tree
printing routines.
(bit_size_expr::maybe_get_as_bytes): Add "mgr" param and convert
return type from tree to const svalue *; reimplement.
(access_range::access_range): Call strip_types when on region_offset
intializations.
(access_range::get_size): Update for conversion of implementation
of bit_size_expr from tree to const svalue &.
(access_operation::get_valid_bits): Pass manager to access_range
ctor.
(access_operation::maybe_get_invalid_before_bits): Likewise.
(access_operation::maybe_get_invalid_after_bits): Likewise.
(boundaries::add): Likewise.
(bit_to_table_map::populate): Add "mgr" param and pass it to
access_range ctor.
(access_diagram_impl::access_diagram_impl): Pass manager to
bit_to_table_map::populate.
(access_diagram_impl::maybe_add_gap): Use svalue rather than tree
for symbolic bit offsets. Port to new bit_size_expr
representation.
(access_diagram_impl::add_valid_vs_invalid_ruler): Port to new
bit_size_expr representation.
(selftest::assert_eq_typeless_integer): New.
(ASSERT_EQ_TYPELESS_INTEGER): New.
(selftest::test_bit_size_expr_to_bytes): New.
(selftest::analyzer_access_diagram_cc_tests): New.
* access-diagram.h (class bit_size_expr): Reimplement, converting
implementation from tree to const svalue &.
(access_range::access_range): Add "mgr" param. Call strip_types
on region_offset initializations.
(access_range::get_size): Update decl for reimplementation.
* analyzer-selftests.cc (selftest::run_analyzer_selftests): Call
selftest::analyzer_access_diagram_cc_tests.
* analyzer-selftests.h
(selftest::analyzer_checker_script_cc_tests): Delete this stray
typo.
(selftest::analyzer_access_diagram_cc_tests): New decl.
* analyzer.h (print_expr_for_user): New decl.
(calc_symbolic_bit_offset): Update decl for reimplementation.
(strip_types): New decls.
(remove_ssa_names): New decl.
* bounds-checking.cc (strip_types): New.
(region_model::check_symbolic_bounds): Use typeless svalues.
* region-model-manager.cc
(region_model_manager::get_or_create_constant_svalue): Add "type"
param. Add overload with old signature.
(region_model_manager::get_or_create_int_cst): Support type being
NULL_TREE.
(region_model_manager::maybe_fold_unaryop): Gracefully reject folding
of casts to NULL_TREE type.
(get_code_for_cast): Use NOP_EXPR for "casting" svalues to
NULL_TREE type.
(region_model_manager::get_or_create_cast): Support "casting"
svalues to NULL_TREE type.
(region_model_manager::maybe_fold_binop): Don't crash on inputs
with NULL_TREE type. Handle folding of binops on constants with
NULL_TREE type. Add missing cast from PR analyzer/110902.
Support enough folding of other ops on NULL_TREE type to support
bounds checking.
(region_model_manager::get_or_create_const_fn_result_svalue):
Remove assertion that type is nonnull.
* region-model-manager.h
(region_model_manager::get_or_create_constant_svalue): Add
overloaded decl taking a type.
(region_model_manager::maybe_fold_binop): Make public.
(region_model_manager::constants_map_t): Use
constant_svalue::key_t for the key, rather than just tree.
* region-model.cc (print_expr_for_user): New.
(selftest::test_array_2): Handle casts.
* region.cc (region_offset::calc_symbolic_bit_offset): Return
const svalue & rather than tree, and reimplement accordingly.
(region::calc_offset): Use ptrdiff_type_node for types of byte
offsets.
(region::maybe_print_for_user): New.
(element_region::get_relative_symbolic_offset): Use NULL_TREE for
types of bit offsets.
(offset_region::get_bit_offset): Likewise.
(sized_region::get_bit_size_sval): Likewise for bit sizes.
* region.h (region::maybe_print_for_user): New decl.
* svalue.cc (class auto_add_parens): New.
(svalue::maybe_print_for_user): New.
(svalue::cmp_ptr): Support typeless constant svalues.
(tristate_from_boolean_tree_node): New, taken from...
(constant_svalue::eval_condition): ...here. Handle comparison of
typeless integer svalue constants.
* svalue.h (svalue::maybe_print_for_user): New decl.
(class constant_svalue): Support the type of the svalue being
NULL_TREE.
(struct default_hash_traits<constant_svalue::key_t>): New.
gcc/ChangeLog:
PR analyzer/110902
PR analyzer/110928
PR analyzer/111305
PR analyzer/111441
* selftest.h (ASSERT_NE_AT): New macro.
gcc/testsuite/ChangeLog:
PR analyzer/110902
PR analyzer/110928
PR analyzer/111305
PR analyzer/111441
* c-c++-common/analyzer/out-of-bounds-const-fn.c: New test.
* c-c++-common/analyzer/out-of-bounds-diagram-11.c: Update
expected diagram output.
* c-c++-common/analyzer/out-of-bounds-diagram-pr110928.c: New test.
* c-c++-common/analyzer/out-of-bounds-diagram-pr111305.c: New test.
* c-c++-common/analyzer/out-of-bounds-diagram-pr111441.c: New test.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
|
|
gcc/analyzer/ChangeLog:
* access-diagram.cc (remove_ssa_names): Support operands being
NULL_TREE, such as e.g. for COMPONENT_REF's operand 2.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
|
|
Recent PR111822 fix implemented REG_EH_REGION note copying to a STV converted
preload instruction in general_scalar_chain::convert_op. However, the same
issue remains in timode_scalar_chain::convert_op. Instead of copying the
newly introduced code to timode_scalar_chain::convert_op, the patch unifies
both functions to a common function.
PR target/111822
gcc/ChangeLog:
* config/i386/i386-features.cc (smode_convert_cst): New function
to handle SImode, DImode and TImode immediates, generalized from
timode_convert_cst.
(timode_convert_cst): Remove.
(scalar_chain::convert_op): Unify from
general_scalar_chain::convert_op and timode_scalar_chain::convert_op.
(general_scalar_chain::convert_op): Remove.
(timode_scalar_chain::convert_op): Remove.
(timode_scalar_chain::convert_insn): Update the call to
renamed timode_convert_cst.
* config/i386/i386-features.h (class scalar_chain):
Redeclare convert_op as protected class member.
(class general_calar_chain): Remove convert_op.
(class timode_scalar_chain): Ditto.
gcc/testsuite/ChangeLog:
* g++.target/i386/pr111822.C (dg-do): Compile only for ia32 targets.
(dg-options): Add -march=x86-64.
|
|
gcc/fortran/ChangeLog:
PR fortran/103715
* frontend-passes.cc (check_externals_expr): Prevent invalid read
in case of mismatch of external subroutine with function.
gcc/testsuite/ChangeLog:
PR fortran/103715
* gfortran.dg/pr103715.f90: New test.
|
|
Since commit 2c3db94d9fd ("c: Turn int-conversion warnings into
permerrors") the test fails with errors such as:
FAIL: gcc.target/arm/acle/cde-mve-error-2.c -O0 (test for errors, line 32)
FAIL: gcc.target/arm/acle/cde-mve-error-2.c -O0 (test for errors, line 33)
FAIL: gcc.target/arm/acle/cde-mve-error-2.c -O0 (test for errors, line 34)
FAIL: gcc.target/arm/acle/cde-mve-error-2.c -O0 (test for errors, line 35)
⋮
FAIL: gcc.target/arm/acle/cde-mve-error-2.c -O0 (test for excess errors)
There's a total of 1016 errors. Here's a sample of the excess errors:
Excess errors:
/path/gcc.git/gcc/testsuite/gcc.target/arm/acle/cde-mve-error-2.c:117:31: error: passing argument 2 of '__builtin_arm_vcx1qv16qi' makes integer from pointer without a cast [-Wint-conversion]
/path/gcc.git/gcc/testsuite/gcc.target/arm/acle/cde-mve-error-2.c:119:3: error: passing argument 3 of '__builtin_arm_vcx1qav16qi' makes integer from pointer without a cast [-Wint-conversion]
/path/gcc.git/gcc/testsuite/gcc.target/arm/acle/cde-mve-error-2.c:121:3: error: passing argument 3 of '__builtin_arm_vcx2qv16qi' makes integer from pointer without a cast [-Wint-conversion]
/path/gcc.git/gcc/testsuite/gcc.target/arm/acle/cde-mve-error-2.c:123:3: error: passing argument 3 of '__builtin_arm_vcx2qv16qi' makes integer from pointer without a cast [-Wint-conversion]
The test expects these messages to be warnings, not errors. My first
try was to change it to expect them as errors instead. This didn't
work, IIUC because the error prevents the compiler from continuing
processing the file and thus other errors which are expected by the
test don't get emitted.
Therefore, add -fpermissive so that the test behaves as it did
previously. Because of the additional line in the header, the line
numbers of the expected warnings don't match anymore so replace them
with ".-1" as suggested by Richard Earnshaw.
Tested on armv8l-linux-gnueabihf.
gcc/testsuite/ChangeLog:
* gcc.target/arm/acle/cde-mve-error-2.c: Add -fpermissive. Use
relative offsets for line numbers.
|
|
This patch corrects an error message relating to a variable of
a SET type. The bugfix is not to skip over set types (in
GetLowestType).
gcc/m2/ChangeLog:
PR modula2/114380
* gm2-compiler/SymbolTable.mod (GetLowestType): Do not
skip over a set type, but return sym.
gcc/testsuite/ChangeLog:
PR modula2/114380
* gm2/pim/fail/badset7.mod: New test.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
|
|
* fr.po, sv.po: Update.
|
|
On some configurations, PowerPC emits -Wpsabi warnings when using IEEE
long doubles on a machine configured with IBM long double by default.
This patch suppresses these warnings for this testcase.
PR testsuite/114320
gcc/testsuite/ChangeLog:
* g++.dg/modules/target-powerpc-1_a.C: Suppress -Wpsabi.
* g++.dg/modules/target-powerpc-1_b.C: Likewise.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
|
|
gcc/ChangeLog:
* config/i386/zn4zn5.md: Add file missed in the previous commit.
|
|
2024-02-14 Jan Hubicka <jh@suse.cz>
Karthiban Anbazhagan <Karthiban.Anbazhagan@amd.com>
gcc/ChangeLog:
* common/config/i386/cpuinfo.h (get_amd_cpu): Recognize znver5.
* common/config/i386/i386-common.cc (processor_names): Add znver5.
(processor_alias_table): Likewise.
* common/config/i386/i386-cpuinfo.h (processor_types): Add new zen
family.
(processor_subtypes): Add znver5.
* config.gcc (x86_64-*-* |...): Likewise.
* config/i386/driver-i386.cc (host_detect_local_cpu): Let
march=native detect znver5 cpu's.
* config/i386/i386-c.cc (ix86_target_macros_internal): Add
znver5.
* config/i386/i386-options.cc (m_ZNVER5): New definition
(processor_cost_table): Add znver5.
* config/i386/i386.cc (ix86_reassociation_width): Likewise.
* config/i386/i386.h (processor_type): Add PROCESSOR_ZNVER5
(PTA_ZNVER5): New definition.
* config/i386/i386.md (define_attr "cpu"): Add znver5.
(Scheduling descriptions) Add znver5.md.
* config/i386/x86-tune-costs.h (znver5_cost): New definition.
* config/i386/x86-tune-sched.cc (ix86_issue_rate): Add znver5.
(ix86_adjust_cost): Likewise.
* config/i386/x86-tune.def (avx512_move_by_pieces): Add m_ZNVER5.
(avx512_store_by_pieces): Add m_ZNVER5.
* doc/extend.texi: Add znver5.
* doc/invoke.texi: Likewise.
* config/i386/znver4.md: Rename to zn4zn5.md; combine znver4 and znver5 Scheduler.
gcc/testsuite/ChangeLog:
* g++.target/i386/mv29.C: Handle znver5 arch.
* gcc.target/i386/funcspec-56.inc:Likewise.
|
|
xor insn can handle some more values without the requirement of a
scratch register. This patch adds a new constraint alternative for
such values. The output function avr_out_bitop already handles
these cases, so no change is needed there.
gcc/
* config/avr/constraints.md (CX2, CX3, CX4): New constraints.
* config/avr/avr-protos.h (avr_xor_noclobber_dconst): New proto.
* config/avr/avr.cc (avr_xor_noclobber_dconst): New function.
* config/avr/avr.md (xorhi3, *xorhi3): Add "d,0,CX2,X" alternative.
(xorpsi3, *xorpsi3): Add "d,0,CX3,X" alternative.
(xorsi3, *xorsi3): Add "d,0,CX4,X" alternative.
|
|
As the tests assume that strndup() is visible (only part of
POSIX.1-2008) define the guard to ensure that it's visible. Currently,
glibc appears to always have this defined in C++, newlib does not.
Without this patch, fails like this can be seen:
Testing analyzer/strndup-1.c, -std=c++98
.../strndup-1.c: In function 'void test_1(const char*)':
.../strndup-1.c:11:13: error: 'strndup' was not declared in this scope; did you mean 'strncmp'?
.../strndup-1.c: In function 'void test_2(const char*)':
.../strndup-1.c:16:13: error: 'strndup' was not declared in this scope; did you mean 'strncmp'?
.../strndup-1.c: In function 'void test_3(const char*)':
.../strndup-1.c:21:13: error: 'strndup' was not declared in this scope; did you mean 'strncmp'?
Patch has been verified on Linux.
gcc/testsuite/ChangeLog:
* c-c++-common/analyzer/strndup-1.c: Define _POSIX_C_SOURCE.
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
|
|
It will be used by copysignm3/xorsignm3/lroundmn2 expanders.
gcc/ChangeLog:
PR target/114334
* config/i386/i386.md (mode): Add new number V8BF,V16BF,V32BF.
(MODEF248): New mode iterator.
(ssevecmodesuffix): Hanlde BF and HF.
* config/i386/sse.md (andnot<mode>3): Extend to HF/BF.
(<code><mode>3): Ditto.
gcc/testsuite/ChangeLog:
* gcc.target/i386/pr114334.c: New test.
|