]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
3 months agotree-optimization/114197 - unexpected if-conversion for vectorization
Richard Biener [Mon, 4 Mar 2024 12:28:34 +0000 (13:28 +0100)] 
tree-optimization/114197 - unexpected if-conversion for vectorization

The following avoids lowering a volatile bitfiled access and in case
the if-converted and original loops end up in different outer loops
because of simplifcations enabled scrap the result since that is not
how the vectorizer expects the loops to be laid out.

PR tree-optimization/114197
* tree-if-conv.cc (bitfields_to_lower_p): Do not lower if
there are volatile bitfield accesses.
(pass_if_conversion::execute): Throw away result if the
if-converted and original loops are not nested as expected.

* gcc.dg/torture/pr114197.c: New testcase.

3 months agotree-optimization/114164 - unsupported SIMD clone call, unsupported VEC_COND
Richard Biener [Fri, 1 Mar 2024 10:07:21 +0000 (11:07 +0100)] 
tree-optimization/114164 - unsupported SIMD clone call, unsupported VEC_COND

The following avoids creating unsupported VEC_COND_EXPRs as part of
SIMD clone call mask argument setup during vectorization which results
in inefficient decomposing of the operation during vector lowering.

PR tree-optimization/114164
* tree-vect-stmts.cc (vectorizable_simd_clone_call): Fail if
the code generated for mask argument setup is not supported.

3 months agolibgomp: Use void (*) (void *) rather than void (*)() for host_fn type [PR114216]
Jakub Jelinek [Mon, 4 Mar 2024 10:40:27 +0000 (11:40 +0100)] 
libgomp: Use void (*) (void *) rather than void (*)() for host_fn type [PR114216]

For the type of the target callbacks we use elsehwere void (*) (void *) and
IMHO should use that for the reverse offload fallback as well (where the actual
callback is emitted using the same code as for host fallback or device kernel
entry routines), even when it is also ok to use void (*) () before C23 and
we aren't building libgomp with C23 yet.  On some arches perhaps void (*) ()
could result in worse code generation because calls in that case like casts
to unprototyped functions need to sometimes pass argument in two different spots
etc. so that it deals with both passing it through ... and as a named argument.

2024-03-04  Jakub Jelinek  <jakub@redhat.com>

PR libgomp/114216
* target.c (gomp_target_rev): Change host_fn type and corresponding
cast from void (*)() to void (*) (void *).

3 months agotree-optimization/114203 - wrong CLZ niter computation
Richard Biener [Mon, 4 Mar 2024 09:38:31 +0000 (10:38 +0100)] 
tree-optimization/114203 - wrong CLZ niter computation

For precision less than int we apply the adjustment to make it defined
at zero after the adjustment to make it compute CLZ rather than CTZ.
That's wrong.

PR tree-optimization/114203
* tree-ssa-loop-niter.cc (build_cltz_expr): Apply CTZ->CLZ
adjustment before making the result defined at zero.

* gcc.dg/torture/pr114203.c: New testcase.

3 months agotree-optimization/114192 - scalar reduction kept live with early break vect
Richard Biener [Mon, 4 Mar 2024 08:46:13 +0000 (09:46 +0100)] 
tree-optimization/114192 - scalar reduction kept live with early break vect

The following fixes a missing replacement of the reduction value
used in the epilog, causing the scalar reduction to be kept live
across the early break exit path.

PR tree-optimization/114192
* tree-vect-loop.cc (vect_create_epilog_for_reduction): Use the
appropriate def for the live out stmt in case of an alternate
exit.

3 months agobitint: Fix tree node sharing bug [PR114209]
Jakub Jelinek [Mon, 4 Mar 2024 10:15:07 +0000 (11:15 +0100)] 
bitint: Fix tree node sharing bug [PR114209]

We ICE on the following testcase due to invalid tree sharing.
The second hunk fixes that, the first one is from me looking around at
other spots which might need end up with invalid tree sharing too.

2024-03-04  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/114209
* gimple-lower-bitint.cc (bitint_large_huge::limb_access): Call
unshare_expr when creating a MEM_REF from MEM_REF.
(bitint_large_huge::lower_stmt): Call unshare_expr.

* gcc.dg/bitint-97.c: New test.

3 months agotestsuite: Make pr104992.c irrelated to target vector feature [PR113418]
Xi Ruoyao [Tue, 23 Jan 2024 11:58:21 +0000 (19:58 +0800)] 
testsuite: Make pr104992.c irrelated to target vector feature [PR113418]

The vect_int_mod target selector is evaluated with the options in
DEFAULT_VECTCFLAGS in effect, but these options are not automatically
passed to tests out of the vect directories.  So this test fails on
targets where integer vector modulo operation is supported but requiring
an option to enable, for example LoongArch.

In this test case, the only expected optimization not happened in
original is in corge because it needs forward propogation.  So we can
scan the forwprop2 dump (where the vector operation is not expanded to
scalars yet) instead of optimized, then we don't need to consider
vect_int_mod or not.

gcc/testsuite/ChangeLog:

PR testsuite/113418
* gcc.dg/pr104992.c (dg-options): Use -fdump-tree-forwprop2
instead of -fdump-tree-optimized.
(dg-final): Scan forwprop2 dump instead of optimized, and remove
the use of vect_int_mod.
* lib/target-supports.exp (check_effective_target_vect_int_mod):
Remove because it's not used anymore.

3 months agoi386: Fix ICEs with SUBREGs from vector etc. constants to XFmode [PR114184]
Jakub Jelinek [Mon, 4 Mar 2024 09:04:19 +0000 (10:04 +0100)] 
i386: Fix ICEs with SUBREGs from vector etc. constants to XFmode [PR114184]

The Intel extended format has the various weird number categories,
pseudo denormals, pseudo infinities, pseudo NaNs and unnormals.
Those are not representable in the GCC real_value and so neither
GIMPLE nor RTX VIEW_CONVERT_EXPR/SUBREG folding folds those into
constants.

As can be seen on the following testcase, because it isn't folded
(since GCC 12, before that we were folding it) we can end up with
a SUBREG of a CONST_VECTOR or similar constant, which isn't valid
general_operand, so we ICE during vregs pass trying to recognize
the move instruction.
Initially I thought it is a middle-end bug, the movxf instruction
has general_operand predicate, but the middle-end certainly never
tests that predicate, seems moves are special optabs.
And looking at other mov optabs, e.g. for vector modes the i386
patterns use nonimmediate_operand predicate on the input, yet
ix86_expand_vector_move deals with CONSTANT_P and SUBREG of CONSTANT_P
arguments which if the predicate was checked couldn't ever make it through.

The following patch handles this case similarly to the
ix86_expand_vector_move's SUBREG of CONSTANT_P case, does it just for XFmode
because I believe that is the only mode that needs it from the scalar ones,
others should just be folded.

2024-03-04  Jakub Jelinek  <jakub@redhat.com>

PR target/114184
* config/i386/i386-expand.cc (ix86_expand_move): If XFmode op1
is SUBREG of CONSTANT_P, force the SUBREG_REG into memory or
register.

* gcc.target/i386/pr114184.c: New test.

3 months agoMAINTAINERS: Add myself to write after approval
demin.han [Mon, 4 Mar 2024 06:34:14 +0000 (14:34 +0800)] 
MAINTAINERS: Add myself to write after approval

ChangeLog:

* MAINTAINERS: Add myself

Signed-off-by: demin.han <demin.han@starfivetech.com>
3 months agoPR target/114187: Fix ?Fmode SUBREG simplification in simplify_subreg.
Roger Sayle [Mon, 4 Mar 2024 00:47:08 +0000 (00:47 +0000)] 
PR target/114187: Fix ?Fmode SUBREG simplification in simplify_subreg.

This patch fixes PR target/114187 a typo/missed-optimization in simplify-rtx
that's exposed by (my) changes to x86_64's parameter passing.  The context
is that construction of double word (TImode) values now uses the idiom:

(ior:TI (ashift:TI (zero_extend:TI (reg:DI x)) (const_int 64 [0x40]))
        (zero_extend:TI (reg:DI y)))

Extracting the DImode highpart and lowpart halves of this complex expression
is supported by simplications in simplify_subreg.  The problem is when the
doubleword TImode value represents two DFmode fields, there isn't a direct
simplification to extract the highpart or lowpart SUBREGs, but instead GCC
uses two steps, extract the DImode {high,low} part and then cast the result
back to a floating point mode, DFmode.

The (buggy) code to do this is:

  /* If the outer mode is not integral, try taking a subreg with the equivalent
     integer outer mode and then bitcasting the result.
     Other simplifications rely on integer to integer subregs and we'd
     potentially miss out on optimizations otherwise.  */
  if (known_gt (GET_MODE_SIZE (innermode),
                GET_MODE_SIZE (outermode))
      && SCALAR_INT_MODE_P (innermode)
      && !SCALAR_INT_MODE_P (outermode)
      && int_mode_for_size (GET_MODE_BITSIZE (outermode),
                            0).exists (&int_outermode))
    {
      rtx tem = simplify_subreg (int_outermode, op, innermode, byte);
      if (tem)
        return simplify_gen_subreg (outermode, tem, int_outermode, byte);
    }

The issue/mistake is that the second call, to simplify_subreg, shouldn't
use "byte" as the final argument; the offset has already been handled by
the first call, to simplify_subreg, and this second call is just a type
conversion from an integer mode to floating point (from DImode to DFmode).

Interestingly, this mistake was already spotted by Richard Sandiford when
the optimization was originally contributed in January 2023.
https://gcc.gnu.org/pipermail/gcc-patches/2023-January/610920.html
>> Richard Sandiford writes:
>> Also, the final line should pass 0 rather than byte.

Unfortunately a miscommunication/misunderstanding in a later thread
https://gcc.gnu.org/pipermail/gcc-patches/2023-February/612898.html
resulted in this correction being undone.  Using lowpart_subreg should
avoid/reduce confusion in future.

2024-03-03  Roger Sayle  <roger@nextmovesoftware.com>

gcc/ChangeLog
PR target/114187
* simplify-rtx.cc (simplify_context::simplify_subreg): Call
lowpart_subreg to perform type conversion, to avoid confusion
over the offset to use in the call to simplify_reg_subreg.

gcc/testsuite/ChangeLog
PR target/114187
* g++.target/i386/pr114187.C: New test case.

3 months agoDaily bump.
GCC Administrator [Mon, 4 Mar 2024 00:16:47 +0000 (00:16 +0000)] 
Daily bump.

3 months agod: Merge upstream dmd, druntime f8bae04558, phobos ba2ade9dec
Iain Buclaw [Sun, 3 Mar 2024 19:28:58 +0000 (20:28 +0100)] 
d: Merge upstream dmd, druntime f8bae04558, phobos ba2ade9dec

D front-end changes:

    - Import dmd v2.108.1-beta-1.

D runtime changes:

    - Import druntime v2.108.1-beta-1.

Phobos changes:

    - Import phobos v2.108.1-beta-1.

gcc/d/ChangeLog:

* dmd/MERGE: Merge upstream dmd f8bae04558.
* dmd/VERSION: Bump version to v2.108.0-beta.1.
* d-builtins.cc (build_frontend_type): Update for new front-end
interface.
* d-codegen.cc (build_assert_call): Likewise.
* d-convert.cc (d_array_convert): Likewise.
* decl.cc (get_vtable_decl): Likewise.
* expr.cc (ExprVisitor::visit (EqualExp *)): Likewise.
(ExprVisitor::visit (VarExp *)): Likewise.
(ExprVisitor::visit (ArrayLiteralExp *)): Likewise.
(ExprVisitor::visit (AssocArrayLiteralExp)): Likewise.
* intrinsics.cc (build_shuffle_mask_type): Likewise.
(maybe_warn_intrinsic_mismatch): Likewise.
* runtime.cc (get_libcall_type): Likewise.
* typeinfo.cc (TypeInfoVisitor::layout_string): Likewise.
(TypeInfoVisitor::visit(TypeInfoTupleDeclaration *)): Likewise.

libphobos/ChangeLog:

* libdruntime/MERGE: Merge upstream druntime 02d6d07a69.
* src/MERGE: Merge upstream phobos a2ade9dec.

3 months ago[PATCH] combine: Don't simplify paradoxical SUBREG on WORD_REGISTER_OPERATIONS [PR113010]
Greg McGary [Sun, 3 Mar 2024 21:49:49 +0000 (14:49 -0700)] 
[PATCH] combine: Don't simplify paradoxical SUBREG on WORD_REGISTER_OPERATIONS [PR113010]

The sign-bit-copies of a sign-extending load cannot be known until runtime on
WORD_REGISTER_OPERATIONS targets, except in the case of a zero-extending MEM
load.  See the fix for PR112758.

gcc/
PR rtl-optimization/113010
* combine.cc (simplify_comparison): Simplify a SUBREG on
WORD_REGISTER_OPERATIONS targets only if it is a zero-extending
MEM load.

gcc/testsuite
* gcc.c-torture/execute/pr113010.c: New test.

3 months agoAVR: Use more C++ ish coding style.
Georg-Johann Lay [Sun, 3 Mar 2024 19:27:49 +0000 (20:27 +0100)] 
AVR: Use more C++ ish coding style.

gcc/
* config/avr/avr.cc: Resolve ATTRIBUTE_UNUSED.
Use bool in place of int for boolean logic (if possible).
Move declarations to definitions (if possible).
* config/avr/avr.md: Use C++ comments.  Fix some indentation glitches.
* config/avr/avr-dimode.md: Same.
* config/avr/constraints.md: Same.
* config/avr/predicates.md: Same.

3 months agoalpha: Introduce UMUL_HIGHPART rtx_code [PR113720]
Uros Bizjak [Sun, 3 Mar 2024 19:40:45 +0000 (20:40 +0100)] 
alpha: Introduce UMUL_HIGHPART rtx_code [PR113720]

umuldi3_highpart expander does:

   if (REG_P (operands[2]))
     operands[2] = gen_rtx_ZERO_EXTEND (TImode, operands[2]);

on register_operand predicate, which also allows SUBREG RTX. So,
subregs were emitted without ZERO_EXTEND RTX.

But nowadays we have UMUL_HIGHPART that allows us to fix this
issue while also simplifying the instruction RTX.

PR target/113720

gcc/ChangeLog:

* config/alpha/alpha.md (umuldi3_highpart): Remove expander.
(*umuldi3_highpart_reg): Rename to umuldi3_highpart and
simplify insn RTX using UMUL_HIGHPART rtx_code.
(*umuldi3_highpart_const): Remove.

3 months agoAVR: ad target/114100 - Don't print unused frame pointer adjustments.
Georg-Johann Lay [Sun, 3 Mar 2024 17:15:58 +0000 (18:15 +0100)] 
AVR: ad target/114100 - Don't print unused frame pointer adjustments.

Without -mfuse-add, when fake reg+offset addressing is used, the
output routines are saving some instructions when the base reg
is unused after.  This patch adds that optimization for the case
when the base is the frame pointer and the frame pointer adjustments
are split away from the move insn by -mfuse-add in .split2.
   Direct usage of reg_unused_after is not possible because that
function looks at the destination of the current insn, which won't
work for offsetting the frame pointer in printing PLUS code.
It can use an extended version of _reg_unused_after though.

gcc/
PR target/114100
* config/avr/avr-protos.h (_reg_unused_after): Remove proto.
* config/avr/avr.cc (_reg_unused_after): Make static.  And
add 3rd argument to skip the current insn.
(reg_unused_after): Adjust call of reg_unused_after.
(avr_out_plus_1) [AVR_TINY && -mfuse-add >= 2]: Don't output
unneeded frame pointer adjustments.

3 months agoAVR: ad target/92792 - Remove insn attribute "cc" and its (dead) uses.
Georg-Johann Lay [Sun, 3 Mar 2024 12:01:24 +0000 (13:01 +0100)] 
AVR: ad target/92792 - Remove insn attribute "cc" and its (dead) uses.

The backend has remains of cc0 condition code.  Unfortunately,
all that information is useless with CCmode, and their use was
removed with the removal of NOTICE_UPDATE_CC in PR92729 with
r12-226 and r12-327.

gcc/
PR target/92729
* config/avr/avr.md (define_attr "cc"): Remove.
* config/avr/avr-protos.h (avr_out_plus): Remove pcc argument
from prototype.
* config/avr/avr.cc (avr_out_plus_1): Remove pcc argument and
its uses.  Add insn argument.
(avr_out_plus_symbol): Remove pcc argument and its uses.
(avr_out_plus): Remove pcc argument and its uses.
Adjust calls of avr_out_plus_symbol and avr_out_plus_1.
(avr_out_round): Adjust call of avr_out_plus.

3 months agoAVR: Fix a typo in avr.cc.
Georg-Johann Lay [Sun, 3 Mar 2024 09:21:20 +0000 (10:21 +0100)] 
AVR: Fix a typo in avr.cc.

gcc/
* config/avr/avr.cc (avr_init_cumulative_args): Fix a typo
from  r14-9273.

3 months agoSH: Fix 101737
Oleg Endo [Sun, 3 Mar 2024 05:58:58 +0000 (14:58 +0900)] 
SH: Fix 101737

gcc/ChangeLog:
PR target/101737
* config/sh/sh.cc (sh_is_nott_insn): Handle case where the input
is not an insn, but e.g. a code label.

3 months agod: Fix gdc -O2 -mavx generates misaligned vmovdqa instruction [PR114171]
Iain Buclaw [Sun, 3 Mar 2024 01:26:37 +0000 (02:26 +0100)] 
d: Fix gdc -O2 -mavx generates misaligned vmovdqa instruction [PR114171]

PR d/114171

gcc/d/ChangeLog:

* d-codegen.cc (lower_struct_comparison): Keep alignment of original
type in reinterpret cast for comparison.

gcc/testsuite/ChangeLog:

* gdc.dg/torture/pr114171.d: New test.

3 months agoDaily bump.
GCC Administrator [Sun, 3 Mar 2024 00:17:08 +0000 (00:17 +0000)] 
Daily bump.

3 months agolibbacktrace: pass -no-install when linking test programs
Ian Lance Taylor [Sat, 2 Mar 2024 21:11:07 +0000 (13:11 -0800)] 
libbacktrace: pass -no-install when linking test programs

* Makefile.am (libbacktrace_testing_ldflags): Define.
(*_LDFLAGS): Add $(libbacktrace_testing_ldflags) for test
programs.
* Makefile.in: Regenerate

3 months agolibbacktrace: skip all LZMA block header padding bytes
Ian Lance Taylor [Sat, 2 Mar 2024 20:15:49 +0000 (12:15 -0800)] 
libbacktrace: skip all LZMA block header padding bytes

Fixes https://github.com/ianlancetaylor/libbacktrace/issues/118

* elf.c (elf_uncompress_lzma_block): Skip all header padding bytes
and verify that they are zero.

3 months agoAVR: Use REG_<n> constants instead of magic numbers <n>.
Georg-Johann Lay [Sat, 2 Mar 2024 12:37:00 +0000 (13:37 +0100)] 
AVR: Use REG_<n> constants instead of magic numbers <n>.

There are some places where avr.cc uses magic numbers like 17 that
are actually register numbers.  This patch defines constants like
REG_17 and uses them instead of the magic numbers when a register
number is meant.

gcc/
* config/avr/avr.md (REG_0, ... REG_36): New define_constants.
* config/avr/avr.cc: Use them instead of magic numbers when it
means a register number.

3 months agoAVR: Adjust some comments.
Georg-Johann Lay [Sat, 2 Mar 2024 11:26:04 +0000 (12:26 +0100)] 
AVR: Adjust some comments.

gcc/
* config/avr/avr.cc: Adjust some comments.

3 months agoAVR: target/114100 - Factor in -mtiny-stack in frame pointer adjustments
Georg-Johann Lay [Sat, 2 Mar 2024 09:03:06 +0000 (10:03 +0100)] 
AVR: target/114100 - Factor in -mtiny-stack in frame pointer adjustments

gcc/
PR target/114100
* config/avr/avr.cc (avr_out_plus_1) [-mtiny-stack]: Only adjust
the low part of the frame pointer with 8-bit stack pointer.

3 months agolibbacktrace: use real .opd for debuginfo on ppc64 v1 ABI
Ian Lance Taylor [Sat, 2 Mar 2024 02:50:03 +0000 (18:50 -0800)] 
libbacktrace: use real .opd for debuginfo on ppc64 v1 ABI

PR libbacktrace/114201
* elf.c (elf_add): Add caller_opd parameter.  Change all callers.
Release opd data after all recursive calls.

3 months agoDaily bump.
GCC Administrator [Sat, 2 Mar 2024 00:17:11 +0000 (00:17 +0000)] 
Daily bump.

3 months agoc++/modules: depending local enums [PR104919, PR106009]
Patrick Palka [Fri, 1 Mar 2024 22:24:15 +0000 (17:24 -0500)] 
c++/modules: depending local enums [PR104919, PR106009]

For local enums defined in a non-template function or a function template
instantiation it seems we neglect to make the function depend on the enum
definition (which modules considers logically separate), which ultimately
causes the enum definition to not be properly streamed before uses
within the function definition are streamed.

The code responsible for noting such dependencies is

gcc/cp/module.cc
@@ -8784,17 +8784,6 @@ trees_out::decl_node (tree decl, walk_kind ref)
   depset *dep = NULL;
   if (streaming_p ())
     dep = dep_hash->find_dependency (decl);
!  else if (TREE_CODE (ctx) != FUNCTION_DECL
!          || TREE_CODE (decl) == TEMPLATE_DECL
!          || (dep_hash->sneakoscope && DECL_IMPLICIT_TYPEDEF_P (decl))
!          || (DECL_LANG_SPECIFIC (decl)
!              && DECL_MODULE_IMPORT_P (decl)))
!    {
!      auto kind = (TREE_CODE (decl) == NAMESPACE_DECL
!                  && !DECL_NAMESPACE_ALIAS (decl)
!                  ? depset::EK_NAMESPACE : depset::EK_DECL);
!      dep = dep_hash->add_dependency (decl, kind);
!    }

   if (!dep)
     {

and the condition there notably excludes local TYPE_DECLs from a
non-template-pattern function (when streaming a template pattern
we'll see be dealing with the corresponding TEMPLATE_DECL of the
local TYPE_DECL here, so we'll add the dependency).

Local classes on the other hand seem to work properly, but perhaps by
accident: with a local class we end up making the function depend on the
injected-class-name of the local class rather than the local class as a
whole because the injected-class-name satisfies the criteria (since its
context is the local class, not the function).

The 'sneakoscope' flag is set when walking a function declaration and
its purpose seems to be to catch a local type that escapes the function
via a deduced return type (so called voldemort types) and note a
dependency on them.  But there seems to be no reason to restrict this
behavior to voldemort types, and indeed consistently noting the dependency
for all local types fixes these PRs (almost).  So this patch gets rid of
this flag and enables the dependency tracking unconditionally.

This was nearly enough to make things work, except we now ran into
issues with the local TYPE_/CONST_DECL copies from the pre-gimplified
version of a constexpr function body during streaming.  Rather than
making modules cope with this, it occurred to me that we don't need to
make copies of local types when saving the pre-gimplified body (and when
making further copies thereof); only VAR_DECLs etc need to be copied
(so that we don't conflate local variables from different recursive
calls to the same function during constexpr evaluation).  So this patch
adjusts copy_fn accordingly.

PR c++/104919
PR c++/106009

gcc/cp/ChangeLog:

* module.cc (depset::hash::sneakoscope): Remove.
(trees_out::decl_node): Always add a dependency on a local type.
(depset::hash::find_dependencies): Remove sneakoscope stuff.

gcc/ChangeLog:

* tree-inline.cc (remap_decl): Handle copy_decl returning the
original decl.
(remap_decls): Handle remap_decl returning the original decl.
(copy_fn): Adjust copy_decl callback to skip TYPE_DECL and
CONST_DECL.

gcc/testsuite/ChangeLog:

* g++.dg/modules/tdef-7.h: Remove outdated comment.
* g++.dg/modules/tdef-7_b.C: Don't expect two TYPE_DECLs.
* g++.dg/modules/enum-13_a.C: New test.
* g++.dg/modules/enum-13_b.C: New test.

3 months agoc++: Stream definitions for implicit instantiations [PR114170]
Nathaniel Shead [Fri, 1 Mar 2024 00:08:23 +0000 (11:08 +1100)] 
c++: Stream definitions for implicit instantiations [PR114170]

An implicit instantiation has an initializer depending on whether
DECL_INITIALIZED_P is set (like normal VAR_DECLs) which needs to be
written to ensure that consumers of header modules properly emit
definitions for these instantiations. This patch ensures that we
correctly fallback to checking this flag when DECL_INITIAL is not set
for a template instantiation.

For variables with non-trivial dynamic initialization, DECL_INITIAL can
be empty after 'split_nonconstant_init' but DECL_INITIALIZED_P is still
set; we need to check the latter to determine if we need to go looking
for a definition to emit (often in 'static_aggregates' here). This is
the case in the linked testcase.

However, for template specialisations (not instantiations?) we primarily
care about DECL_INITIAL; if the variable has initialization depending on
a template parameter then we'll need to emit that definition even though
it doesn't yet have DECL_INITIALIZED_P set; this is the case in e.g.

  template <int N> int value = N;

As a drive-by fix, also ensures that the count of initializers matches
the actual number of initializers written. This doesn't seem to be
necessary for correctness in the current testsuite, but feels wrong and
makes debugging harder when initializers aren't properly written for
other reasons.

PR c++/114170

gcc/cp/ChangeLog:

* module.cc (has_definition): Fall back to DECL_INITIALIZED_P
when DECL_INITIAL is not set on a template.
(module_state::write_inits): Only increment count when
initializers are actually written.

gcc/testsuite/ChangeLog:

* g++.dg/modules/var-tpl-2_a.H: New test.
* g++.dg/modules/var-tpl-2_b.C: New test.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
3 months agoc++: Ensure DECL_CONTEXT is set for temporary vars [PR114005]
Nathaniel Shead [Thu, 29 Feb 2024 11:49:13 +0000 (22:49 +1100)] 
c++: Ensure DECL_CONTEXT is set for temporary vars [PR114005]

Modules streaming requires DECL_CONTEXT to be set for anything streamed.
This patch ensures that 'create_temporary_var' does set a DECL_CONTEXT
for these variables (such as the backing storage for initializer_lists)
even if not inside a function declaration.

PR c++/114005

gcc/cp/ChangeLog:

* init.cc (create_temporary_var): Use current_scope instead of
current_function_decl.

gcc/testsuite/ChangeLog:

* g++.dg/modules/pr114005_a.C: New test.
* g++.dg/modules/pr114005_b.C: New test.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
3 months ago[14 regression] Fix insn types in risc-v port
Jeff Law [Fri, 1 Mar 2024 21:54:04 +0000 (14:54 -0700)] 
[14 regression] Fix insn types in risc-v port

So one of the broad goals we've had over the last few months has been to ensure
that every insn has a scheduling type and that every insn is associated with an
insn reservation in the scheduler.

This avoids some amazingly bad behavior in the scheduler.  I won't go through
the gory details.

I was recently analyzing a code quality regression with dhrystone (ugh!) and
one of the issues was poor scheduling which lengthened the lifetime of a pseudo
and ultimately resulted in needing an additional callee saved register
save/restore.

This was ultimately tracked down incorrect types on a few patterns.  So I did
an audit of all the patterns that had types added/changed as part of this
effort and found a variety of problems, primarily in the various move patterns
and extension patterns.  This is a regression relative to gcc-13.

Naturally the change in types affects scheduling, which in turn changes the
precise code we generate and causes some testsuite fallout.

I considered updating the regexps since the change in the resulting output is
pretty consistent.  But of course the test would still be sensitive to things
like load latency.  So instead I just turned off the 2nd phase scheduler in the
affected tests.

Bootstrapped and regression tested on rv64gc-linux-gnu.
gcc
* config/riscv/riscv.md (zero_extendqi<SUPERQI:mode>2_internal): Fix
type attribute.
(extendsidi2_internal, movhf_hardfloat, movhf_softfloat): Likewise.
(movdi_32bit, movdi_64bit, movsi_internal): Likewise.
(movhi_internal, movqi_internal): Likewise.
(movsf_softfloat, movsf_hardfloat): Likewise.
(movdf_hardfloat_rv32, movdf_hardfloat_rv64): Likewise.
(movdf_softfloat): Likewise.

gcc/testsuite
* gcc.target/riscv/rvv/autovec/vls/calling-convention-1.c: Turn off
second phase scheduler.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-2.c: Likewise.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-3.c: Likewise.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-4.c: Likewise.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-5.c: Likewise.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-6.c: Likewise.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-7.c: Likewise.

3 months agoc++/modules: complete_vars ICE with non-exported constexpr var
Patrick Palka [Fri, 1 Mar 2024 21:50:20 +0000 (16:50 -0500)] 
c++/modules: complete_vars ICE with non-exported constexpr var

Here after stream-in of the non-exported constexpr global 'A a' we call
maybe_register_incomplete_var, which we'd expect to be a no-op here but
it manages to take its second branch and pushes {a, NULL_TREE} onto
incomplete_vars.  Later after defining B we ICE from complete_vars due
to this pushed NULL_TREE class context.

Judging by the two commits that introduced/modified this part of
maybe_register_incomplete_var, r196852 and r214333, it seems this second
branch is only concerned with constexpr static data members (whose
initializer may contain a pointer-to-member for a not-yet-complete class)
So this patch restricts this branch accordingly so it's not inadvertently
taken during stream-in.

gcc/cp/ChangeLog:

* decl.cc (maybe_register_incomplete_var): Restrict second
branch to static data members from a not-yet-complete class.

gcc/testsuite/ChangeLog:

* g++.dg/modules/cexpr-4_a.C: New test.
* g++.dg/modules/cexpr-4_b.C: New test.

Reviewed-by: Jason Merrill <jason@redhat.com>
3 months agoc++: implement [[gnu::no_dangling]] [PR110358]
Marek Polacek [Thu, 25 Jan 2024 21:38:51 +0000 (16:38 -0500)] 
c++: implement [[gnu::no_dangling]] [PR110358]

Since -Wdangling-reference has false positives that can't be
prevented, we should offer an easy way to suppress the warning.
Currently, that is only possible by using a #pragma, either around the
enclosing class or around the call site.  But #pragma GCC diagnostic tend
to be onerous.  A better solution would be to have an attribute.

To that end, this patch adds a new attribute, [[gnu::no_dangling]].
This attribute takes an optional bool argument to support cases like:

  template <typename T>
  struct [[gnu::no_dangling(std::is_reference_v<T>)]] S {
     // ...
  };

PR c++/110358
PR c++/109642

gcc/cp/ChangeLog:

* call.cc (no_dangling_p): New.
(reference_like_class_p): Use it.
(do_warn_dangling_reference): Use it.  Don't warn when the function
or its enclosing class has attribute gnu::no_dangling.
* tree.cc (cxx_gnu_attributes): Add gnu::no_dangling.
(handle_no_dangling_attribute): New.

gcc/ChangeLog:

* doc/extend.texi: Document gnu::no_dangling.
* doc/invoke.texi: Mention that gnu::no_dangling disables
-Wdangling-reference.

gcc/testsuite/ChangeLog:

* g++.dg/ext/attr-no-dangling1.C: New test.
* g++.dg/ext/attr-no-dangling2.C: New test.
* g++.dg/ext/attr-no-dangling3.C: New test.
* g++.dg/ext/attr-no-dangling4.C: New test.
* g++.dg/ext/attr-no-dangling5.C: New test.
* g++.dg/ext/attr-no-dangling6.C: New test.
* g++.dg/ext/attr-no-dangling7.C: New test.
* g++.dg/ext/attr-no-dangling8.C: New test.
* g++.dg/ext/attr-no-dangling9.C: New test.

3 months agotestsuite: ctf: make array in ctf-file-scope-1 fixed length
David Faust [Fri, 1 Mar 2024 18:43:24 +0000 (10:43 -0800)] 
testsuite: ctf: make array in ctf-file-scope-1 fixed length

The array member of struct SFOO in the ctf-file-scope-1 caused the test
to fail for the BPF target, since BPF does not support dynamic stack
allocation. The array does not need to variable length for the sake of
the test, so make it fixed length instead to allow the test to run
successfully for the bpf-unknown-none target.

gcc/testsuite/

* gcc.dg/debug/ctf/ctf-file-scope-1.c (SFOO): Make array member
fixed-length.

3 months agoFortran: improve checks of NULL without MOLD as actual argument [PR104819]
Harald Anlauf [Fri, 1 Mar 2024 18:21:27 +0000 (19:21 +0100)] 
Fortran: improve checks of NULL without MOLD as actual argument [PR104819]

gcc/fortran/ChangeLog:

PR fortran/104819
* check.cc (gfc_check_null): Handle nested NULL()s.
(is_c_interoperable): Check for MOLD argument of NULL() as part of
the interoperability check.
* interface.cc (gfc_compare_actual_formal): Extend checks for NULL()
actual arguments for presence of MOLD argument when required by
Interp J3/22-146.

gcc/testsuite/ChangeLog:

PR fortran/104819
* gfortran.dg/assumed_rank_9.f90: Adjust testcase use of NULL().
* gfortran.dg/pr101329.f90: Adjust testcase to conform to interp.
* gfortran.dg/null_actual_4.f90: New test.

3 months agoc++: auto(x) partial substitution [PR110025, PR114138]
Patrick Palka [Fri, 1 Mar 2024 17:50:18 +0000 (12:50 -0500)] 
c++: auto(x) partial substitution [PR110025, PR114138]

In r12-6773-g09845ad7569bac we gave CTAD placeholders a level of 0 and
ensured we never replaced them via tsubst.  It turns out that autos
representing an explicit cast need the same treatment and for the same
reason: such autos appear in an expression context and so their level
gets easily messed up after partial substitution, leading to premature
replacement via an incidental tsubst instead of via do_auto_deduction.

This patch fixes this by extending the r12-6773 approach to auto(x).

PR c++/110025
PR c++/114138

gcc/cp/ChangeLog:

* cp-tree.h (make_cast_auto): Declare.
* parser.cc (cp_parser_functional_cast): If the type is an auto,
replace it with a level-less one via make_cast_auto.
* pt.cc (find_parameter_packs_r): Don't treat level-less auto
as a type parameter pack.
(tsubst) <case TEMPLATE_TYPE_PARM>: Generalize CTAD placeholder
auto handling to all level-less autos.
(make_cast_auto): Define.
(do_auto_deduction): Handle replacement of a level-less auto.

gcc/testsuite/ChangeLog:

* g++.dg/cpp23/auto-fncast16.C: New test.
* g++.dg/cpp23/auto-fncast17.C: New test.
* g++.dg/cpp23/auto-fncast18.C: New test.

Reviewed-by: Jason Merrill <jason@redhat.com>
3 months agoAVR: Overhaul help screen
Georg-Johann Lay [Fri, 1 Mar 2024 16:39:22 +0000 (17:39 +0100)] 
AVR: Overhaul help screen

gcc/
* config/avr/avr.opt: Overhaul help screen.

3 months agoc++: Fix up decltype of non-dependent structured binding decl in template [PR92687]
Jakub Jelinek [Fri, 1 Mar 2024 15:59:08 +0000 (16:59 +0100)] 
c++: Fix up decltype of non-dependent structured binding decl in template [PR92687]

finish_decltype_type uses DECL_HAS_VALUE_EXPR_P (expr) check for
DECL_DECOMPOSITION_P (expr) to determine if it is
array/struct/vector/complex etc. subobject proxy case vs. structured
binding using std::tuple_{size,element}.
For non-templates or when templates are already instantiated, that works
correctly, finalized DECL_DECOMPOSITION_P non-base vars indeed have
DECL_VALUE_EXPR in the former case and don't have it in the latter.
It works fine for dependent structured bindings as well, cp_finish_decomp in
that case creates DECLTYPE_TYPE tree and defers the handling until
instantiation.
As the testcase shows, this doesn't work for the non-dependent structured
binding case in templates, because DECL_HAS_VALUE_EXPR_P is set in that case
always; cp_finish_decomp ends with:
  if (processing_template_decl)
    {
      for (unsigned int i = 0; i < count; i++)
        if (!DECL_HAS_VALUE_EXPR_P (v[i]))
          {
            tree a = build_nt (ARRAY_REF, decl, size_int (i),
                               NULL_TREE, NULL_TREE);
            SET_DECL_VALUE_EXPR (v[i], a);
            DECL_HAS_VALUE_EXPR_P (v[i]) = 1;
          }
    }
and those artificial ARRAY_REFs are used in various places during
instantiation to find out what base the DECL_DECOMPOSITION_P VAR_DECLs
have and their positions.

The following patch fixes that by changing lookup_decomp_type, such that
it doesn't ICE when called on a DECL_DECOMPOSITION_P var which isn't in a
hash table, but returns NULL_TREE in that case, and for processing_template_decl
asserts DECL_HAS_VALUE_EXPR_P is non-NULL and just calls lookup_decomp_type.
If it returns non-NULL, it is a structured binding using tuple and its result
is returned, otherwise it falls through to returning unlowered_expr_type (expr)
because it is an array, structure etc. subobject proxy.
For !processing_template_decl it keeps doing what it did before,
DECL_HAS_VALUE_EXPR_P meaning it is an array/structure etc. subobject proxy,
otherwise the tuple case.

2024-03-01  Jakub Jelinek  <jakub@redhat.com>

PR c++/92687
* decl.cc (lookup_decomp_type): Return NULL_TREE if decomp_type_table
doesn't have entry for V.
* semantics.cc (finish_decltype_type): If ptds.saved, assert
DECL_HAS_VALUE_EXPR_P is true and decide on tuple vs. non-tuple based
on if lookup_decomp_type is NULL or not.

* g++.dg/cpp1z/decomp59.C: New test.

3 months agoOpenMP/C++: Fix (first)private clause with member variables [PR110347]
Jakub Jelinek [Fri, 1 Mar 2024 16:26:42 +0000 (17:26 +0100)] 
OpenMP/C++: Fix (first)private clause with member variables [PR110347]

OpenMP permits '(first)private' for C++ member variables, which GCC handles
by tagging those by DECL_OMP_PRIVATIZED_MEMBER, adding a temporary VAR_DECL
and DECL_VALUE_EXPR pointing to the 'this->member_var' in the C++ front end.

The idea is that in omp-low.cc, the DECL_VALUE_EXPR is used before the
region (for 'firstprivate'; ignored for 'private') while in the region,
the DECL itself is used.

In gimplify, the value expansion is suppressed and deferred if the
  lang_hooks.decls.omp_disregard_value_expr (decl, shared)
returns true - which is never the case if 'shared' is true. In OpenMP 4.5,
only 'map' and 'use_device_ptr' was permitted for the 'target' directive.
And when OpenMP 5.0's 'private'/'firstprivate' clauses was added, the
the update that now 'shared' argument could be false was missed. The
respective check has now been added.

2024-03-01  Jakub Jelinek  <jakub@redhat.com>
    Tobias Burnus  <tburnus@baylibre.com>

PR c++/110347

gcc/ChangeLog:

* gimplify.cc (omp_notice_variable): Fix 'shared' arg to
lang_hooks.decls.omp_disregard_value_expr for
(first)private in target regions.

libgomp/ChangeLog:

* testsuite/libgomp.c++/target-lambda-3.C: Moved from
gcc/testsuite/g++.dg/gomp/ and fixed is-mapped handling.
* testsuite/libgomp.c++/target-lambda-1.C: Modify to also
also work without offloading.
* testsuite/libgomp.c++/firstprivate-1.C: New test.
* testsuite/libgomp.c++/firstprivate-2.C: New test.
* testsuite/libgomp.c++/private-1.C: New test.
* testsuite/libgomp.c++/private-2.C: New test.
* testsuite/libgomp.c++/target-lambda-4.C: New test.
* testsuite/libgomp.c++/use_device_ptr-1.C: New test.

gcc/testsuite/ChangeLog:

* g++.dg/gomp/target-lambda-1.C: Moved to become a
run-time test under testsuite/libgomp.c++.

Co-authored-by: Tobias Burnus <tburnus@baylibre.com>
3 months agocontrib: mklog: Use present tense in ChangeLog
Bernhard Reutner-Fischer [Thu, 29 Feb 2024 16:52:17 +0000 (17:52 +0100)] 
contrib: mklog: Use present tense in ChangeLog

contrib/ChangeLog:

* mklog.py: Use present tense in ChangeLog.

3 months agocalls: Further fixes for TYPE_NO_NAMED_ARGS_STDARG_P handling [PR114136]
Jakub Jelinek [Fri, 1 Mar 2024 14:42:52 +0000 (15:42 +0100)] 
calls: Further fixes for TYPE_NO_NAMED_ARGS_STDARG_P handling [PR114136]

On Tue, Feb 27, 2024 at 04:41:32PM +0000, Richard Earnshaw wrote:
> On Arm the PR107453 change is causing all anonymous arguments to be passed on the
> stack, which is incorrect per the ABI.  On a target that uses
> 'pretend_outgoing_vararg_named', why is it correct to set n_named_args to
> zero?  Is it enough to guard both the statements you've added with
> !targetm.calls.pretend_outgoing_args_named?

The TYPE_NO_NAMED_ARGS_STDARG_P functions (C23 fns like void foo (...) {})
have NULL type_arg_types, so the list_length (type_arg_types) isn't done for
it, but it should be handled as if it was non-NULL but list length was 0.

So, for the
  if (type_arg_types != 0)
    n_named_args
      = (list_length (type_arg_types)
         /* Count the struct value address, if it is passed as a parm.  */
         + structure_value_addr_parm);
  else if (TYPE_NO_NAMED_ARGS_STDARG_P (funtype))
    n_named_args = 0;
  else
    /* If we know nothing, treat all args as named.  */
    n_named_args = num_actuals;
case, I think guarding it by any target hooks is wrong, although
I guess it should have been
    n_named_args = structure_value_addr_parm;
instead of
    n_named_args = 0;

For the second
  if (type_arg_types != 0
      && targetm.calls.strict_argument_naming (args_so_far))
    ;
  else if (type_arg_types != 0
           && ! targetm.calls.pretend_outgoing_varargs_named (args_so_far))
    /* Don't include the last named arg.  */
    --n_named_args;
  else if (TYPE_NO_NAMED_ARGS_STDARG_P (funtype))
    n_named_args = 0;
  else
    /* Treat all args as named.  */
    n_named_args = num_actuals;
I think we should treat those as if type_arg_types was non-NULL
with 0 elements in the list, except the --n_named_args would for
!structure_value_addr_parm lead to n_named_args = -1, I think we want
0 for that case.

2024-03-01  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/114136
* calls.cc (expand_call): For TYPE_NO_NAMED_ARGS_STDARG_P set
n_named_args initially before INIT_CUMULATIVE_ARGS to
structure_value_addr_parm rather than 0, after it don't modify
it if strict_argument_naming and clear only if
!pretend_outgoing_varargs_named.

3 months agodwarf2out: Don't move variable sized aggregates to comdat [PR114015]
Jakub Jelinek [Fri, 1 Mar 2024 13:57:15 +0000 (14:57 +0100)] 
dwarf2out: Don't move variable sized aggregates to comdat [PR114015]

The following testcase ICEs, because we decide to move that
struct { char a[n]; } DW_TAG_structure_type into .debug_types section
/ DW_UT_type DWARF5 unit, but refer from there to a DW_TAG_variable
(created artificially for the array bounds).
Even with non-bitint, I think it is just wrong to use .debug_types
section / DW_UT_type for something that uses DW_OP_fbreg and similar
in it, things clearly dependent on a particular function.
In most cases, is_nested_in_subprogram (die) check results in such
aggregates not being moved, but in the function parameter type case
that is not the case.

The following patch fixes it by returning false from should_move_die_to_comdat
for non-constant sized aggregate types, i.e. when either we gave up on
adding DW_AT_byte_size for it because it wasn't expressable, or when
it is something non-constant (location description, reference, ...).

2024-03-01  Jakub Jelinek  <jakub@redhat.com>

PR debug/114015
* dwarf2out.cc (should_move_die_to_comdat): Return false for
aggregates without DW_AT_byte_size attribute or with non-constant
DW_AT_byte_size.

* gcc.dg/debug/dwarf2/pr114015.c: New test.

3 months agoAVR: Document valid ranges of -mfuse-add=
Georg-Johann Lay [Fri, 1 Mar 2024 12:33:44 +0000 (13:33 +0100)] 
AVR: Document valid ranges of -mfuse-add=

gcc/
* doc/invoke.texi (AVR Options) <-mfuse-add=level>: Document
valid values for level.

3 months agomiddle-end/114070 - VEC_COND_EXPR folding
Richard Biener [Thu, 29 Feb 2024 08:22:19 +0000 (09:22 +0100)] 
middle-end/114070 - VEC_COND_EXPR folding

The following amends the PR114070 fix to optimistically allow
the folding when we cannot expand the current vec_cond using
vcond_mask and we're still before vector lowering.  This leaves
a small window between vectorization and lowering where we could
break vec_conds that can be expanded via vcond{,u,eq}, most
susceptible is the loop unrolling pass which applies VN and thus
possibly folding to the unrolled body of a vectorized loop.

This gets back the folding for targets that cannot do vectorization.
It doesn't get back the folding for x86 with AVX512 for example
since that can handle the original IL but not the folded since
it misses some vcond_mask expanders.

PR middle-end/114070
* match.pd ((c ? a : b) op d  -->  c ? (a op d) : (b op d)):
Allow the folding if before lowering and the current IL
isn't supported with vcond_mask.

3 months agoRISC-V: Add riscv_vector_cc function attribute
xuli [Fri, 1 Mar 2024 09:10:12 +0000 (09:10 +0000)] 
RISC-V: Add riscv_vector_cc function attribute

Standard vector calling convention variant will only enabled when function
has vector argument or returning value by default, however user may also
want to invoke function without that during a vectorized loop at some situation,
but it will cause a huge performance penalty due to vector register store/restore.

So user can declare function with this riscv_vector_cc attribute like below, that could enforce
function will use standard vector calling convention variant.

void foo() __attribute__((riscv_vector_cc));
[[riscv::vector_cc]] void foo(); // For C++11 and C23

For more details please reference the below link.
https://github.com/riscv-non-isa/riscv-c-api-doc/pull/67

gcc/ChangeLog:

* config/riscv/riscv.cc (TARGET_GNU_ATTRIBUTES): Add riscv_vector_cc
attribute to riscv_attribute_table.
(riscv_vector_cc_function_p): Return true if FUNC is a riscv_vector_cc function.
(riscv_fntype_abi): Add riscv_vector_cc attribute check.
* doc/extend.texi: Add riscv_vector_cc attribute description.

gcc/testsuite/ChangeLog:

* g++.target/riscv/rvv/base/attribute-riscv_vector_cc-error.C: New test.
* gcc.target/riscv/rvv/base/attribute-riscv_vector_cc-callee-saved.c: New test.
* gcc.target/riscv/rvv/base/attribute-riscv_vector_cc-error.c: New test.

3 months agoRISC-V: Introduce gcc option mrvv-vector-bits for RVV
Pan Li [Fri, 23 Feb 2024 07:37:28 +0000 (15:37 +0800)] 
RISC-V: Introduce gcc option mrvv-vector-bits for RVV

This patch would like to introduce one new gcc option for RVV. To
appoint the bits size of one RVV vector register. Valid arguments to
'-mrvv-vector-bits=' are:

* scalable
* zvl

The scalable will pick up the zvl*b in the march as the minimal vlen.
For example, the minimal vlen will be 512 when march=rv64gcv_zvl512b
and mrvv-vector-bits=scalable.

The zvl will pick up the zvl*b in the march as exactly vlen.
For example, the vlen will be 1024 exactly when march=rv64gcv_zvl1024b
and mrvv-vector-bits=zvl.

The internal option --param=riscv-autovec-preference will be replaced
by option -mrvv-vector-bits. Aka:

* -mrvv-vector-bits=scalable indicates --param=riscv-autovec-preference=scalable
* -mrvv-vector-bits=zvl indicates --param=riscv-autovec-preference=fixed-vlmax

You can also take -fno-tree-vectorize for --param=riscv-autovec-preference=none.
The internal option --param=riscv-autovec-preference is unavailable after this
patch.

Given below sample for more details:

void test_rvv_vector_bits ()
{
  vint32m1_t x;
  asm volatile ("def %0": "=vr"(x));
  asm volatile (""::: "v0",   "v1",  "v2",  "v3",  "v4",  "v5",  "v6",  "v7",
                      "v8",   "v9", "v10", "v11", "v12", "v13", "v14", "v15",
                      "v16", "v17", "v18", "v19", "v20", "v21", "v22", "v23",
                      "v24", "v25", "v26", "v27", "v28", "v29", "v30", "v31");
  asm volatile ("use %0": : "vr"(x));
}

With -march=rv64gcv_zvl128b -mrvv-vector-bits=scalable we have (for min_vlen >= 128)
  csrr    t0,vlenb
  sub     sp,sp,t0
  def v1
  vs1r.v  v1,0(sp)
  vl1re32.v       v1,0(sp)
  use v1
  csrr    t0,vlenb
  add     sp,sp,t0
  jr      ra

With -march=rv64gcv_zvl128b -mrvv-vector-bits=zvl we have (for vlen = 128)
  addi    sp,sp,-16
  def v1
  vs1r.v  v1,0(sp)
  vl1re32.v       v1,0(sp)
  use v1
  addi    sp,sp,16
  jr      ra

The below test are passed for this patch.

* The riscv fully regression test.

PR target/112817

gcc/ChangeLog:

* config/riscv/riscv-avlprop.cc (pass_avlprop::execute): Replace
RVV_FIXED_VLMAX to RVV_VECTOR_BITS_ZVL.
* config/riscv/riscv-opts.h (enum riscv_autovec_preference_enum): Remove.
(enum rvv_vector_bits_enum): New enum for different RVV vector bits.
* config/riscv/riscv-selftests.cc (riscv_run_selftests): Update
comments for option replacement.
* config/riscv/riscv-v.cc (autovec_use_vlmax_p): Replace enum of
riscv_autovec_preference to rvv_vector_bits.
(vls_mode_valid_p): Ditto.
(estimated_poly_value): Ditto.
* config/riscv/riscv.cc (riscv_convert_vector_chunks): Rename to
vector chunks and honor new option mrvv-vector-bits.
(riscv_override_options_internal): Update comments and rename the
vector chunks.
* config/riscv/riscv.opt: Add option mrvv-vector-bits and remove
internal option param=riscv-autovec-preference.

gcc/testsuite/ChangeLog:

* g++.target/riscv/rvv/base/pr111296.C: Replace
param=riscv-autovec-preference to mrvv-vector-bits.
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul4-6.c: Ditto.
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul4-8.c: Ditto.
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul8-12.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-2.c: Ditto.
* gcc.dg/vect/costmodel/riscv/rvv/pr113247-4.c: Ditto.
* gcc.dg/vect/costmodel/riscv/rvv/pr113281-2.c: Ditto.
* gcc.dg/vect/costmodel/riscv/rvv/pr113281-4.c: Ditto.
* gcc.target/riscv/rvv/autovec/align-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/align-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/copysign-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/copysign-rv32gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/copysign-rv64gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/copysign-zvfh-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/fmax-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/fmax_run-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/fmax_zvfh-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/fmax_zvfh_run-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/fmin-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/fmin_run-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/fmin_zvfh-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/fmin_zvfh_run-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/mulh-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/mulh-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/mulh_run-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/mulh_run-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/narrow-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/narrow-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/narrow-3.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/narrow_run-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/narrow_run-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/narrow_run-3.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/shift-immediate.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/shift-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/shift-rv32gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/shift-rv64gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/shift-scalar-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/shift-scalar-rv32gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/shift-scalar-rv64gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/shift-scalar-template.h: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vadd-run-nofm.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vadd-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vadd-rv32gcv-nofm.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vadd-rv32gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vadd-rv64gcv-nofm.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vadd-rv64gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vadd-zvfh-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vand-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vand-rv32gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vand-rv64gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vcompress-avlprop-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vdiv-run-nofm.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vdiv-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vdiv-rv32gcv-nofm.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vdiv-rv32gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vdiv-rv64gcv-nofm.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vdiv-rv64gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vdiv-zvfh-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vmax-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vmax-rv32gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vmax-rv64gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vmax-zvfh-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vmin-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vmin-rv32gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vmin-rv64gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vmin-zvfh-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vmul-run-nofm.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vmul-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vmul-rv32gcv-nofm.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vmul-rv32gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vmul-rv64gcv-nofm.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vmul-rv64gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vmul-zvfh-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vor-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vor-rv32gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vor-rv64gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vrem-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vrem-rv32gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vrem-rv64gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vsub-run-nofm.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vsub-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vsub-rv32gcv-nofm.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vsub-rv32gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vsub-rv64gcv-nofm.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vsub-rv64gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vsub-zvfh-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vxor-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vxor-rv32gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/binop/vxor-rv64gcv.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-6.c: Ditto.
* gcc.target/riscv/rvv/autovec/bug-8.c: Ditto.
* gcc.target/riscv/rvv/autovec/cmp/vcond-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cmp/vcond-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cmp/vcond-3.c: Ditto.
* gcc.target/riscv/rvv/autovec/cmp/vcond-4.c: Ditto.
* gcc.target/riscv/rvv/autovec/cmp/vcond_run-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cmp/vcond_run-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cmp/vcond_run-3.c: Ditto.
* gcc.target/riscv/rvv/autovec/cmp/vcond_run-4.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith-10.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith-11.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith-3.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith-4.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith-5.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith-6.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith-7.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith-8.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith-9.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith_run-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith_run-10.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith_run-11.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith_run-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith_run-3.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith_run-4.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith_run-5.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith_run-6.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith_run-7.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith_run-8.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_arith_run-9.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2float-rv32-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2float-rv32-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2float-rv64-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2float-rv64-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2float_run-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2float_run-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2int-rv32-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2int-rv32-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2int-rv64-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2int-rv64-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2int_run-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2int_run-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2int_zvfh-rv32-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2int_zvfh-rv32-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2int_zvfh-rv64-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2int_zvfh-rv64-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2int_zvfh_run-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2int_zvfh_run-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_int2float-rv32-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_int2float-rv32-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_int2float-rv64-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_int2float-rv64-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_int2float_run-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_int2float_run-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_int2int-rv32-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_int2int-rv32-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_int2int-rv64-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_int2int-rv64-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_int2int_run-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_convert_int2int_run-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_copysign-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_copysign-rv32gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_copysign-rv64gcv.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_copysign-zvfh-run.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fadd-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fadd-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fadd-3.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fadd-4.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fadd_run-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fadd_run-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fadd_run-3.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fadd_run-4.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fma_fnma-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fma_fnma-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fma_fnma-3.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fma_fnma-4.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fma_fnma-5.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fma_fnma-6.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fma_fnma-7.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fma_fnma-8.c:
* gcc.target/riscv/rvv/autovec/cond/cond_fma_fnma_run-1.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fma_fnma_run-2.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fma_fnma_run-3.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fma_fnma_run-4.c: Ditto.
* gcc.target/riscv/rvv/autovec/cond/cond_fma_fnma_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fma_fnma_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fma_fnma_run-7.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fma_fnma_run-8.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmax-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmax-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmax-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmax-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmax_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmax_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmax_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmax_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmax_zvfh-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmax_zvfh-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmax_zvfh-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmax_zvfh-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmax_zvfh_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmax_zvfh_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmax_zvfh_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmax_zvfh_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmin-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmin-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmin-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmin-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmin_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmin_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmin_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmin_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmin_zvfh-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmin_zvfh-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmin_zvfh-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmin_zvfh-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmin_zvfh_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmin_zvfh_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmin_zvfh_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmin_zvfh_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fms_fnms-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fms_fnms-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fms_fnms-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fms_fnms-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fms_fnms-5.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fms_fnms-6.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fms_fnms_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fms_fnms_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fms_fnms_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fms_fnms_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fms_fnms_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fms_fnms_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmul-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmul-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmul-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmul-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmul-5.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmul_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmul_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmul_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmul_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_fmul_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_logical_min_max-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_logical_min_max-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_logical_min_max-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_logical_min_max-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_logical_min_max-5.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_logical_min_max_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_logical_min_max_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_logical_min_max_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_logical_min_max_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_logical_min_max_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_mulh-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_mulh-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_mulh_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_mulh_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_narrow_shift-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_narrow_shift-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_narrow_shift-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_narrow_shift_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_narrow_shift_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_narrow_shift_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift-5.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift-6.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift-7.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift-8.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift-9.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift_run-7.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift_run-8.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_shift_run-9.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_sqrt-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_sqrt-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_sqrt-zvfh-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_sqrt-zvfh-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_sqrt_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_sqrt_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_sqrt_run-zvfh-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_sqrt_run-zvfh-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_unary-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_unary-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_unary-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_unary-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_unary-5.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_unary-6.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_unary-7.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_unary-8.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_unary_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_unary_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_unary_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_unary_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_unary_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_unary_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_unary_run-7.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_unary_run-8.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_widen_complicate-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_widen_complicate-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_widen_complicate-3.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_widen_complicate-4.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_widen_complicate-5.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_widen_complicate-6.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_widen_complicate-7.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_widen_complicate-8.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_widen_complicate-9.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_widen_reduc-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_widen_reduc-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_widen_reduc_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/cond_widen_reduc_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/cond/pr111401.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vec-narrow-int64-float16.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vec-widen-float16-int64.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfcvt-itof-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfcvt-itof-rv32gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfcvt-itof-rv64gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfcvt-itof-zvfh-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfcvt_rtz-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfcvt_rtz-rv32gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfcvt_rtz-rv64gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfcvt_rtz-zvfh-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfncvt-ftoi-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfncvt-ftoi-rv32gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfncvt-ftoi-rv64gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfncvt-ftoi-zvfh-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfncvt-itof-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfncvt-itof-rv32gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfncvt-itof-rv64gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfncvt-itof-zvfh-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfncvt-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfncvt-rv32gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfncvt-rv64gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfncvt-zvfh-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfwcvt-ftoi-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfwcvt-ftoi-rv32gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfwcvt-ftoi-rv64gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfwcvt-ftoi-zvfh-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfwcvt-itof-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfwcvt-itof-rv32gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfwcvt-itof-rv64gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfwcvt-itof-zvfh-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfwcvt-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfwcvt-rv32gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfwcvt-rv64gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vfwcvt-zvfh-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vncvt-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vncvt-rv32gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vncvt-rv64gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vsext-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vsext-rv32gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vsext-rv64gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vzext-run.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vzext-rv32gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/conversions/vzext-rv64gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/fixed-vlmax-1.c: Diito.
* gcc.target/riscv/rvv/autovec/fold-min-poly.c: Diito.
* gcc.target/riscv/rvv/autovec/gather-scatter/strided_load-1.c: Diito.
* gcc.target/riscv/rvv/autovec/gather-scatter/strided_load-2.c: Diito.
* gcc.target/riscv/rvv/autovec/gather-scatter/strided_store-1.c: Diito.
* gcc.target/riscv/rvv/autovec/gather-scatter/strided_store-2.c: Diito.
* gcc.target/riscv/rvv/autovec/madd-split2-1.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/gimple_fold-1.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/live-1.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/live-2.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/live_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/live_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/multiple_rgroup-1.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/multiple_rgroup-2.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/multiple_rgroup-3.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/multiple_rgroup-4.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/multiple_rgroup_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/multiple_rgroup_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/multiple_rgroup_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/multiple_rgroup_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/multiple_rgroup_zbb.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/select_vl-1.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/select_vl-2.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/single_rgroup-1.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/single_rgroup-2.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/single_rgroup-3.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/single_rgroup_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/single_rgroup_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/single_rgroup_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-1.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-10.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-11.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-12.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-13.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-14.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-15.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-16.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-17.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-18.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-19.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-2.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-3.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-4.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-5.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-6.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-7.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-8.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp-9.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-10.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-11.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-12.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-13.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-14.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-15.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-16.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-17.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-18.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-19.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-7.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-8.c: Diito.
* gcc.target/riscv/rvv/autovec/partial/slp_run-9.c: Diito.
* gcc.target/riscv/rvv/autovec/post-ra-avl.c: Diito.
* gcc.target/riscv/rvv/autovec/pr110950.c: Diito.
* gcc.target/riscv/rvv/autovec/pr110964.c: Diito.
* gcc.target/riscv/rvv/autovec/pr110989.c: Diito.
* gcc.target/riscv/rvv/autovec/pr111232.c: Diito.
* gcc.target/riscv/rvv/autovec/pr111295.c: Diito.
* gcc.target/riscv/rvv/autovec/pr111313.c: Diito.
* gcc.target/riscv/rvv/autovec/pr112326.c: Diito.
* gcc.target/riscv/rvv/autovec/pr112552.c: Diito.
* gcc.target/riscv/rvv/autovec/pr112554.c: Diito.
* gcc.target/riscv/rvv/autovec/pr112561.c: Diito.
* gcc.target/riscv/rvv/autovec/pr112597-1.c: Diito.
* gcc.target/riscv/rvv/autovec/pr112599-1.c: Diito.
* gcc.target/riscv/rvv/autovec/pr112599-3.c: Diito.
* gcc.target/riscv/rvv/autovec/pr112694-1.c: Diito.
* gcc.target/riscv/rvv/autovec/pr112854.c: Diito.
* gcc.target/riscv/rvv/autovec/pr112872.c: Diito.
* gcc.target/riscv/rvv/autovec/pr112999.c: Diito.
* gcc.target/riscv/rvv/autovec/pr113393-1.c: Diito.
* gcc.target/riscv/rvv/autovec/pr113393-2.c: Diito.
* gcc.target/riscv/rvv/autovec/pr113393-3.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last-1.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last-10.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last-11.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last-12.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last-13.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last-14.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last-2.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last-3.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last-4.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last-5.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last-6.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last-7.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last-8.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last-9.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last_run-10.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last_run-11.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last_run-12.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last_run-13.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last_run-14.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last_run-7.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last_run-8.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/extract_last_run-9.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc-1.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc-10.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc-2.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc-3.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc-4.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc-5.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc-6.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc-7.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc-8.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc-9.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_call-1.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_call-2.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_call-3.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_call-4.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_call-5.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_run-10.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_run-7.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_run-8.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_strict-1.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_strict-2.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_strict-3.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_strict-4.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_strict-5.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_strict-6.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_strict-7.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_strict_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_strict_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_zvfh-10.c: Diito.
* gcc.target/riscv/rvv/autovec/reduc/reduc_zvfh_run-10.c: Diito.
* gcc.target/riscv/rvv/autovec/scalable-1.c: Diito.
* gcc.target/riscv/rvv/autovec/series-1.c: Diito.
* gcc.target/riscv/rvv/autovec/series_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/slp-mask-1.c: Diito.
* gcc.target/riscv/rvv/autovec/slp-mask-run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_load-1.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_load-2.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_load-3.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_load-4.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_load-5.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_load-6.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_load-7.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_load_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_load_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_load_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_load_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_load_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_load_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_load_run-7.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_store-1.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_store-2.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_store-3.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_store-4.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_store-5.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_store-6.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_store-7.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_store_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_store_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_store_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_store_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_store_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_store_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/mask_struct_store_run-7.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-1.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-10.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-11.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-12.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-13.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-14.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-15.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-16.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-17.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-18.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-2.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-3.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-4.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-5.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-6.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-7.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-8.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect-9.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-10.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-11.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-12.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-13.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-14.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-15.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-16.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-17.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-18.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-7.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-8.c: Diito.
* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-9.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop-1.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop-10.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop-11.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop-12.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop-2.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop-3.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop-4.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop-5.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop-6.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop-7.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop-8.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop-9.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm-1.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm-10.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm-11.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm-12.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm-2.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm-3.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm-4.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm-5.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm-6.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm-7.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm-8.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm-9.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm_run-10.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm_run-11.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm_run-12.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm_run-7.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm_run-8.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_nofm_run-9.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run-10.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run-11.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run-12.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run-7.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run-8.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run-9.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run_zvfh-1.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run_zvfh-10.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run_zvfh-11.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run_zvfh-12.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run_zvfh-2.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run_zvfh-3.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run_zvfh-4.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run_zvfh-5.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run_zvfh-6.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run_zvfh-7.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run_zvfh-8.c: Diito.
* gcc.target/riscv/rvv/autovec/ternop/ternop_run_zvfh-9.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/abs-run.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/abs-rv32gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/abs-rv64gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/abs-zvfh-run.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/popcount-1.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/popcount-2.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/vfsqrt-run.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/vfsqrt-rv32gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/vfsqrt-rv64gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/vfsqrt-zvfh-run.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/vneg-run.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/vneg-rv32gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/vneg-rv64gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/vneg-zvfh-run.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/vnot-run.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/vnot-rv32gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/unop/vnot-rv64gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/v-1.c: Diito.
* gcc.target/riscv/rvv/autovec/v-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-10.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-11.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-12.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-13.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-14.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-3.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-4.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-5.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-6.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-7.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-8.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/bitmask-9.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/combine-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/combine-merge_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/combine-merge_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/compress-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/compress-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/compress-3.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/compress-4.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/compress-5.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/compress-6.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/compress_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/compress_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/compress_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/compress_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/compress_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/compress_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/consecutive-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/consecutive-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/consecutive_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/consecutive_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/full-vec-move1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/insert_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/insert_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/merge-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/merge-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/merge-3.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/merge-4.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/merge-5.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/merge-6.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/merge-7.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/merge_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/merge_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/merge_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/merge_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/merge_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/merge_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/merge_run-7.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/perm_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/perm_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/perm_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/perm_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/perm_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/perm_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/perm_run-7.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/pr110985.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/repeat_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/repeat_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/repeat_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/repeat_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/repeat_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/repeat_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/trailing-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/trailing-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/trailing_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls-vlmax/trailing_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-10.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-3.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-4.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-5.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-6.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-7.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-8.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-9.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/calling-convention-run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/vls/pr110994.c: Diito.
* gcc.target/riscv/rvv/autovec/vmv-imm-fixed-rv32.c: Diito.
* gcc.target/riscv/rvv/autovec/vmv-imm-fixed-rv64.c: Diito.
* gcc.target/riscv/rvv/autovec/vmv-imm-run.c: Diito.
* gcc.target/riscv/rvv/autovec/vmv-imm-rv32.c: Diito.
* gcc.target/riscv/rvv/autovec/vmv-imm-rv64.c: Diito.
* gcc.target/riscv/rvv/autovec/vreinterpet-fixed.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/vec-avg-run.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/vec-avg-rv32gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/vec-avg-rv64gcv.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-1.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-10.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-11.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-12.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-2.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-3.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-4.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-5.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-6.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-7.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-8.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-9.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-complicate-1.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-complicate-2.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-complicate-3.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-complicate-4.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-complicate-5.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-complicate-6.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-complicate-7.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-complicate-8.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen-complicate-9.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_reduc-1.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_reduc_order-1.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_reduc_order-2.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_reduc_order_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_reduc_order_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_reduc_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run-1.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run-10.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run-11.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run-12.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run-2.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run-3.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run-4.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run-5.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run-6.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run-7.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run-8.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run-9.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run_zvfh-1.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run_zvfh-10.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run_zvfh-11.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run_zvfh-12.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run_zvfh-2.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run_zvfh-3.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run_zvfh-5.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run_zvfh-6.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run_zvfh-7.c: Diito.
* gcc.target/riscv/rvv/autovec/widen/widen_run_zvfh-8.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32f-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32f-2.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32f-3.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32f_zvl1024b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32f_zvl128b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32f_zvl128b-2.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32f_zvl2048b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32f_zvl256b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32f_zvl4096b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32f_zvl512b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32x-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32x-2.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32x-3.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32x_zvl1024b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32x_zvl128b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32x_zvl128b-2.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32x_zvl2048b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32x_zvl256b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32x_zvl4096b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve32x_zvl512b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64d-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64d-2.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64d-3.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64d_zvl1024b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64d_zvl128b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64d_zvl128b-2.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64d_zvl2048b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64d_zvl256b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64d_zvl4096b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64d_zvl512b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64f-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64f-2.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64f-3.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64f_zvl1024b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64f_zvl128b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64f_zvl128b-2.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64f_zvl2048b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64f_zvl256b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64f_zvl4096b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64f_zvl512b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64x-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64x-2.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64x-3.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64x_zvl1024b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64x_zvl128b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64x_zvl128b-2.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64x_zvl2048b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64x_zvl256b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64x_zvl4096b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zve64x_zvl512b-1.c: Diito.
* gcc.target/riscv/rvv/autovec/zvfhmin-1.c: Diito.
* gcc.target/riscv/rvv/base/abi-callee-saved-1-fixed-1.c: Diito.
* gcc.target/riscv/rvv/base/abi-callee-saved-1-fixed-2.c: Diito.
* gcc.target/riscv/rvv/base/cpymem-1.c: Diito.
* gcc.target/riscv/rvv/base/cpymem-2.c: Diito.
* gcc.target/riscv/rvv/base/cpymem-strategy-3.c: Diito.
* gcc.target/riscv/rvv/base/cpymem-strategy-4.c: Diito.
* gcc.target/riscv/rvv/base/float-point-dynamic-frm-77.c: Diito.
* gcc.target/riscv/rvv/base/float-point-frm-autovec-1.c: Diito.
* gcc.target/riscv/rvv/base/float-point-frm-autovec-2.c: Diito.
* gcc.target/riscv/rvv/base/float-point-frm-autovec-3.c: Diito.
* gcc.target/riscv/rvv/base/float-point-frm-autovec-4.c: Diito.
* gcc.target/riscv/rvv/base/poly-selftest-1.c: Diito.
* gcc.target/riscv/rvv/base/pr110119-1.c: Diito.
* gcc.target/riscv/rvv/base/pr110119-2.c: Diito.
* gcc.target/riscv/rvv/base/pr111720-0.c: Diito.
* gcc.target/riscv/rvv/base/pr111720-1.c: Diito.
* gcc.target/riscv/rvv/base/pr111720-10.c: Diito.
* gcc.target/riscv/rvv/base/pr111720-2.c: Diito.
* gcc.target/riscv/rvv/base/pr111720-3.c: Diito.
* gcc.target/riscv/rvv/base/pr111720-4.c: Diito.
* gcc.target/riscv/rvv/base/pr111720-5.c: Diito.
* gcc.target/riscv/rvv/base/pr111720-6.c: Diito.
* gcc.target/riscv/rvv/base/pr111720-7.c: Diito.
* gcc.target/riscv/rvv/base/pr111720-8.c: Diito.
* gcc.target/riscv/rvv/base/pr111720-9.c: Diito.
* gcc.target/riscv/rvv/base/vf_avl-1.c: Diito.
* gcc.target/riscv/rvv/base/vf_avl-2.c: Diito.
* gcc.target/riscv/rvv/base/vf_avl-3.c: Diito.
* gcc.target/riscv/rvv/base/vf_avl-4.c: Diito.
* gcc.target/riscv/rvv/base/zvl-unimplemented-1.c: Diito.
* gcc.target/riscv/rvv/base/zvl-unimplemented-2.c: Diito.
* gcc.target/riscv/rvv/rvv.exp: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_multiple-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_multiple-10.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_multiple-11.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_multiple-12.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_multiple-13.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_multiple-14.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_multiple-15.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_multiple-16.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_multiple-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_multiple-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_multiple-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_multiple-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_multiple-6.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_multiple-7.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_multiple-8.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_multiple-9.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_prop-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_prop-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-10.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-100.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-101.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-102.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-103.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-104.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-105.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-106.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-107.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-108.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-109.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-11.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-12.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-13.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-14.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-15.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-16.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-17.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-18.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-19.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-20.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-21.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-22.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-23.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-24.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-25.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-26.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-27.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-28.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-29.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-30.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-31.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-32.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-33.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-34.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-35.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-36.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-37.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-38.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-39.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-40.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-41.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-42.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-43.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-44.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-45.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-46.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-47.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-48.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-49.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-50.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-51.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-52.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-53.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-54.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-55.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-56.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-57.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-58.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-59.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-6.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-60.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-61.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-62.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-63.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-64.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-65.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-66.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-67.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-68.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-69.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-7.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-70.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-71.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-72.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-73.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-74.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-75.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-76.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-77.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-78.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-79.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-8.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-80.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-81.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-82.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-83.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-84.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-85.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-86.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-87.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-88.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-89.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-9.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-90.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-91.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-92.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-93.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-94.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-95.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-96.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-97.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-98.c: Diito.
* gcc.target/riscv/rvv/vsetvl/avl_single-99.c: Diito.
* gcc.target/riscv/rvv/vsetvl/dump-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/ffload-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/ffload-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/ffload-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/ffload-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/ffload-6.c: Diito.
* gcc.target/riscv/rvv/vsetvl/ffload-7.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_bb_prop-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_bb_prop-10.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_bb_prop-11.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_bb_prop-12.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_bb_prop-13.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_bb_prop-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_bb_prop-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_bb_prop-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_bb_prop-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_bb_prop-6.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_bb_prop-7.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_bb_prop-8.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_bb_prop-9.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_conflict-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_conflict-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_conflict-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_conflict-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_conflict-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-10.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-11.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-12.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-13.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-14.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-15.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-16.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-17.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-6.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-7.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-8.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_loop_invariant-9.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_switch-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_switch-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_switch-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_switch-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_switch-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_switch-6.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_switch-7.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_switch-8.c: Diito.
* gcc.target/riscv/rvv/vsetvl/imm_switch-9.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr108270.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr109399.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr109547.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr109615.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr109743-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr109743-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr109743-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr109743-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr109748.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr109773-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr109773-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr109974.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr111037-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr111037-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr111037-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr111037-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr111234.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr111255.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr111927.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr111947.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr112092-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr112092-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr112713-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr112713-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr112776.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr112813-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr112929-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr112988-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr113248.c: Diito.
* gcc.target/riscv/rvv/vsetvl/pr113696.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-10.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-11.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-12.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-13.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-14.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-15.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-16.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-17.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-18.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-19.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-20.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-21.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-22.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-23.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-24.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-25.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-26.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-27.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-28.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-29.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-30.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-31.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-32.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-33.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-34.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-35.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-36.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-37.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-38.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-39.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-40.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-41.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-42.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-43.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-44.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-45.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-46.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-6.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-7.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-8.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-9.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-10.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-11.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-12.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-13.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-14.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-15.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-16.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-17.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-18.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-19.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-20.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-21.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-22.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-23.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-24.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-25.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-26.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-27.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-28.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-6.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-7.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-8.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_bb_prop-9.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_call-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_call-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_call-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_call-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_complex_loop-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_complex_loop-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_conflict-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_conflict-10.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_conflict-11.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_conflict-12.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_conflict-13.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_conflict-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_conflict-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_conflict-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_conflict-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_conflict-6.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_conflict-7.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_conflict-8.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_conflict-9.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-10.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-11.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-12.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-13.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-14.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-15.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-16.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-17.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-18.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-19.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-20.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-21.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-22.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-23.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-24.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-25.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-26.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-27.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-28.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-6.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-7.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-8.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_miss_default-9.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-10.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-11.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-12.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-13.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-14.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-15.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-16.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-17.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-18.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-19.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-20.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-21.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-22.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-23.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-24.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-25.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-26.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-27.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-28.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-6.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-7.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-8.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_phi-9.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-10.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-11.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-12.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-13.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-14.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-15.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-16.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-17.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-18.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-19.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-6.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-7.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-8.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_block-9.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_vtype-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_vtype-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_vtype-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_vtype-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_vtype-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_vtype-6.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_vtype-7.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_single_vtype-8.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-10.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-11.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-12.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-13.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-14.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-15.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-16.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-6.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-7.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-8.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vlmax_switch_vtype-9.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-10.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-11.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-12.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-13.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-14.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-15.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-16.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-17.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-18.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-19.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-20.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-21.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-22.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-23.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-24.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-6.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-7.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-8.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl-9.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl_bug-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl_bug-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl_int.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvl_pre-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-1.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-10.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-11.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-12.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-13.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-14.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-15.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-16.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-17.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-18.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-19.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-2.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-20.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-3.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-4.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-5.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-6.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-7.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-8.c: Diito.
* gcc.target/riscv/rvv/vsetvl/vsetvlmax-9.c: Diito.
* gcc.target/riscv/rvv/vsetvl/wredsum_vlmax.c: Diito.
* gcc.target/riscv/rvv/base/rvv-vector-bits-1.c: New test.
* gcc.target/riscv/rvv/base/rvv-vector-bits-2.c: New test.
* gcc.target/riscv/rvv/base/rvv-vector-bits-3.c: New test.
* gcc.target/riscv/rvv/base/rvv-vector-bits-4.c: New test.
* gcc.target/riscv/rvv/base/rvv-vector-bits-5.c: New test.
* gcc.target/riscv/rvv/base/rvv-vector-bits-6.c: New test.

Signed-off-by: Pan Li <pan2.li@intel.com>
3 months agofunction: Fix another TYPE_NO_NAMED_ARGS_STDARG_P spot
Jakub Jelinek [Fri, 1 Mar 2024 10:07:36 +0000 (11:07 +0100)] 
function: Fix another TYPE_NO_NAMED_ARGS_STDARG_P spot

When looking at PR114175 (although that bug seems to be now a riscv backend
bug), I've noticed that for the TYPE_NO_NAMED_ARGS_STDARG_P functions which
return value through hidden reference, like
  #include <stdarg.h>

  struct S { char a[64]; };
  int n;

  struct S
  foo (...)
  {
    struct S s = {};
    va_list ap;
    va_start (ap);
    for (int i = 0; i < n; ++i)
      if ((i & 1))
        s.a[0] += va_arg (ap, double);
      else
        s.a[0] += va_arg (ap, int);
    va_end (ap);
    return s;
  }
we were incorrectly calling assign_parms_setup_varargs twice, once
at the start of the function and once in
      if (cfun->stdarg && !DECL_CHAIN (parm))
        assign_parms_setup_varargs (&all, &data, false);
where parm is the last and only "named" parameter.

The first call, guarded with TYPE_NO_NAMED_ARGS_STDARG_P, was added in
r13-3549 and is needed for int bar (...) etc. functions using
va_start/va_arg/va_end, otherwise the
  FOR_EACH_VEC_ELT (fnargs, i, parm)
in which the other call is will not iterate at all.  But we shouldn't
be doing that if we have the hidden return pointer.

With the following patch on the above testcase with -O0 -std=c23 the
assembly difference is:
  pushq %rbp
  .cfi_def_cfa_offset 16
  .cfi_offset 6, -16
  movq %rsp, %rbp
  .cfi_def_cfa_register 6
  pushq %rbx
  subq $192, %rsp
  .cfi_offset 3, -24
- movq %rdi, -192(%rbp)
- movq %rsi, -184(%rbp)
- movq %rdx, -176(%rbp)
- movq %rcx, -168(%rbp)
- movq %r8, -160(%rbp)
- movq %r9, -152(%rbp)
- testb %al, %al
- je .L2
- movaps %xmm0, -144(%rbp)
- movaps %xmm1, -128(%rbp)
- movaps %xmm2, -112(%rbp)
- movaps %xmm3, -96(%rbp)
- movaps %xmm4, -80(%rbp)
- movaps %xmm5, -64(%rbp)
- movaps %xmm6, -48(%rbp)
- movaps %xmm7, -32(%rbp)
-.L2:
  movq %rdi, -312(%rbp)
  movq %rdi, -192(%rbp)
  movq %rsi, -184(%rbp)
  movq %rdx, -176(%rbp)
  movq %rcx, -168(%rbp)
  movq %r8, -160(%rbp)
  movq %r9, -152(%rbp)
  testb %al, %al
- je .L13
+ je .L12
  movaps %xmm0, -144(%rbp)
  movaps %xmm1, -128(%rbp)
  movaps %xmm2, -112(%rbp)
  movaps %xmm3, -96(%rbp)
  movaps %xmm4, -80(%rbp)
  movaps %xmm5, -64(%rbp)
  movaps %xmm6, -48(%rbp)
  movaps %xmm7, -32(%rbp)
-.L13:
+.L12:
plus some renumbering of labels later on which clearly shows
that because of this bug, we were saving all the registers twice
rather then once.  With -O2 -std=c23 some of it is DCEd, but we still get
  subq $160, %rsp
  .cfi_def_cfa_offset 168
- testb %al, %al
- je .L2
- movaps %xmm0, 24(%rsp)
- movaps %xmm1, 40(%rsp)
- movaps %xmm2, 56(%rsp)
- movaps %xmm3, 72(%rsp)
- movaps %xmm4, 88(%rsp)
- movaps %xmm5, 104(%rsp)
- movaps %xmm6, 120(%rsp)
- movaps %xmm7, 136(%rsp)
-.L2:
  movq %rdi, -24(%rsp)
  movq %rsi, -16(%rsp)
  movq %rdx, -8(%rsp)
  movq %rcx, (%rsp)
  movq %r8, 8(%rsp)
  movq %r9, 16(%rsp)
  testb %al, %al
- je .L13
+ je .L12
  movaps %xmm0, 24(%rsp)
  movaps %xmm1, 40(%rsp)
  movaps %xmm2, 56(%rsp)
  movaps %xmm3, 72(%rsp)
  movaps %xmm4, 88(%rsp)
  movaps %xmm5, 104(%rsp)
  movaps %xmm6, 120(%rsp)
  movaps %xmm7, 136(%rsp)
-.L13:
+.L12:
difference, i.e. this time not all, but the floating point args
were conditionally all saved twice.

2024-03-01  Jakub Jelinek  <jakub@redhat.com>

* function.cc (assign_parms): Only call assign_parms_setup_varargs
early for TYPE_NO_NAMED_ARGS_STDARG_P functions if fnargs is empty.

3 months agobitint: Handle VCE from large/huge _BitInt SSA_NAME from load [PR114156]
Jakub Jelinek [Fri, 1 Mar 2024 10:04:51 +0000 (11:04 +0100)] 
bitint: Handle VCE from large/huge _BitInt SSA_NAME from load [PR114156]

When adding checks in which case not to merge a VIEW_CONVERT_EXPR from
large/huge _BitInt to vector/complex etc., I missed the case of loads.
Those are handled differently later.
Anyway, I think the load case is something we can handle just fine,
so the following patch does that instead of preventing the merging
gimple_lower_bitint; we'd then copy from memory to memory and and do the
vce only on the second one, it is just better to vce the first one.

2024-03-01  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/114156
* gimple-lower-bitint.cc (bitint_large_huge::lower_stmt): Allow
rhs1 of a VCE to have no underlying variable if it is a load and
handle that case.

* gcc.dg/bitint-96.c: New test.

3 months agolibbacktrace: read symbol table of debuginfo file
Ian Lance Taylor [Fri, 1 Mar 2024 03:44:19 +0000 (19:44 -0800)] 
libbacktrace: read symbol table of debuginfo file

These become another symbol table to search.  This is needed if people
use --strip-all rather than --strip-debug when adding a debuglink
section.

Patch is from GitHub user pickard1.

Fixes https://github.com/ianlancetaylor/libbacktrace/issues/113.

* elf.c (elf_add): Add the symbol table from a debuginfo file.
* Makefile.am (MAKETESTS): Add buildidfull and gnudebuglinkfull
variants of buildid and gnudebuglink tests.
(%_gnudebuglinkfull, %_buildidfull): New patterns.
* Makefile.in: Regenerate.

3 months agoDaily bump.
GCC Administrator [Fri, 1 Mar 2024 00:16:41 +0000 (00:16 +0000)] 
Daily bump.

3 months agoanalyzer: fix ICE in call summarization [PR114159]
David Malcolm [Thu, 29 Feb 2024 22:57:08 +0000 (17:57 -0500)] 
analyzer: fix ICE in call summarization [PR114159]

PR analyzer/114159 reports an ICE inside playback of call summaries
for very low values of --param=analyzer-max-svalue-depth=VAL.

Root cause is that call_summary_edge_info's ctor tries to evaluate
the function ptr of a gimple call stmt and assumes it gets a function *,
but with low values of --param=analyzer-max-svalue-depth=VAL we get
back an UNKNOWN svalue, rather than a pointer to a specific function.

Fix by adding a new call_info ctor that passes a specific
const function & from the call_summary_edge_info, rather than trying
to compute the function.

In doing so, I noticed that the analyzer was using "function *" despite
not modifying functions, and was sloppy about can-be-null versus
must-be-non-null function pointers, so I "constified" the function, and
converted the many places where the function must be non-null to be
"const function &".

gcc/analyzer/ChangeLog:
PR analyzer/114159
* analyzer.cc: Include "tree-dfa.h".
(get_ssa_default_def): New decl.
* analyzer.h (get_ssa_default_def): New.
* call-info.cc (call_info::call_info): New ctor taking an explicit
called_fn.
* call-info.h (call_info::call_info): Likewise.
* call-summary.cc (call_summary_replay::call_summary_replay):
Convert param from function * to const function &.
* call-summary.h (call_summary_replay::call_summary_replay):
Likewise.
* checker-event.h (state_change_event::get_dest_function):
Constify return value.
* engine.cc (point_and_state::validate): Update for conversion to
const function &.
(exploded_node::on_stmt): Likewise.
(call_summary_edge_info::call_summary_edge_info): Likewise.
Pass in called_fn to call_info ctor.
(exploded_node::replay_call_summaries): Update for conversion to
const function &.  Convert per_function_data from * to &.
(exploded_node::replay_call_summary): Update for conversion to
const function &.
(exploded_graph::add_function_entry): Likewise.
(toplevel_function_p): Likewise.
(add_tainted_args_callback): Likewise.
(exploded_graph::build_initial_worklist): Likewise.
(exploded_graph::maybe_create_dynamic_call): Likewise.
(maybe_update_for_edge): Likewise.
(exploded_graph::on_escaped_function): Likewise.
* exploded-graph.h (exploded_node::replay_call_summaries):
Likewise.
(exploded_node::replay_call_summary): Likewise.
(exploded_graph::add_function_entry): Likewise.
* program-point.cc (function_point::from_function_entry):
Likewise.
(program_point::from_function_entry): Likewise.
* program-point.h (function_point::from_function_entry): Likewise.
(program_point::from_function_entry): Likewise.
* program-state.cc (program_state::push_frame): Likewise.
(program_state::get_current_function): Constify return type.
* program-state.h (program_state::push_frame): Update for
conversion to const function &.
(program_state::get_current_function): Likewise.
* region-model-manager.cc
(region_model_manager::get_frame_region): Likewise.
* region-model-manager.h
(region_model_manager::get_frame_region): Likewise.
* region-model.cc (region_model::called_from_main_p): Likewise.
(region_model::update_for_gcall): Likewise.
(region_model::push_frame): Likewise.
(region_model::get_current_function): Constify return type.
(region_model::pop_frame): Update for conversion to
const function &.
(selftest::test_stack_frames): Likewise.
(selftest::test_get_representative_path_var): Likewise.
(selftest::test_state_merging): Likewise.
(selftest::test_alloca): Likewise.
* region-model.h (region_model::push_frame): Likewise.
(region_model::get_current_function): Likewise.
* region.cc (frame_region::dump_to_pp): Likewise.
(frame_region::get_region_for_local): Likewise.
* region.h (class frame_region): Likewise.
* sm-signal.cc (signal_unsafe_call::describe_state_change):
Likewise.
(update_model_for_signal_handler): Likewise.
(signal_delivery_edge_info_t::update_model): Likewise.
(register_signal_handler::impl_transition): Likewise.
* state-purge.cc (class gimple_op_visitor): Likewise.
(state_purge_map::state_purge_map): Likewise.
(state_purge_map::get_or_create_data_for_decl): Likewise.
(state_purge_per_ssa_name::state_purge_per_ssa_name): Likewise.
(state_purge_per_ssa_name::add_to_worklist): Likewise.
(state_purge_per_ssa_name::process_point): Likewise.
(state_purge_per_decl::add_to_worklist): Likewise.
(state_purge_annotator::print_needed): Likewise.
* state-purge.h
(state_purge_map::get_or_create_data_for_decl): Likewise.
(class state_purge_per_tree): Likewise.
(class state_purge_per_ssa_name): Likewise.
(class state_purge_per_decl): Likewise.
* supergraph.cc (supergraph::dump_dot_to_pp): Likewise.
* supergraph.h
(supergraph::get_node_for_function_entry): Likewise.
(supergraph::get_node_for_function_exit): Likewise.

gcc/ChangeLog:
PR analyzer/114159
* function.cc (function_name): Make param const.
* function.h (function_name): Likewise.

gcc/testsuite/ChangeLog:
PR analyzer/114159
* c-c++-common/analyzer/call-summaries-pr114159.c: New test.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
3 months agoAVR: target/114100 - Better indirect accesses for reduced Tiny
Georg-Johann Lay [Thu, 29 Feb 2024 16:19:27 +0000 (17:19 +0100)] 
AVR: target/114100 - Better indirect accesses for reduced Tiny

The Reduced Tiny core does not support indirect addressing with offset,
which basically means that every indirect memory access with a size
of more than one byte is effectively POST_INC or PRE_DEC.  The lack of
that addressing mode is currently handled by pretending to support it,
and then let the insn printers add and subtract again offsets as needed.
For example, the following C code

   int vars[10];

   void inc_var2 (void) {
      ++vars[2];
   }

is compiled to:

   ldi r30,lo8(vars)     ;  14   [c=4 l=2]  *movhi/4
   ldi r31,hi8(vars)
   subi r30,lo8(-(4))    ;  15   [c=8 l=6]  *movhi/2
   sbci r31,hi8(-(4))
   ld r20,Z+
   ld r21,Z
   subi r30,lo8((4+1))
   sbci r31,hi8((4+1))
   subi r20,-1             ;  16   [c=4 l=2]  *addhi3_clobber/1
   sbci r21,-1
   subi r30,lo8(-(4+1))    ;  17   [c=4 l=4]  *movhi/3
   sbci r31,hi8(-(4+1))
   st Z,r21
   st -Z,r20

where the code could be -- and with this patch actually is -- like

   ldi r30,lo8(vars+4)    ;  28   [c=4 l=2]  *movhi/4
   ldi r31,hi8(vars+4)
   ld r20,Z+              ;  17   [c=8 l=2]  *movhi/2
   ld r21,Z+
   subi r20,-1            ;  19   [c=4 l=2]  *addhi3_clobber/1
   sbci r21,-1
   st -Z,r21              ;  30   [c=4 l=2]  *movhi/3
   st -Z,r20

This is achieved in two steps:

- A post-reload split into "real" instructions during .split2.
- A new avr-specific mini pass .avr-fuse-add that runs before
  RTL peephole and that tries to combine the generated pointer
  additions into memory accesses to form POST_INC or PRE_DEC.

gcc/
PR target/114100
* doc/invoke.texi (AVR Options) <-mfuse-add>: Document.
* config/avr/avr.opt (-mfuse-add=): New target option.
* common/config/avr/avr-common.cc (avr_option_optimization_table)
[OPT_LEVELS_1_PLUS]: Set -mfuse-add=1.
[OPT_LEVELS_2_PLUS]: Set -mfuse-add=2.
* config/avr/avr-passes.def (avr_pass_fuse_add): Insert new pass.
* config/avr/avr-protos.h (avr_split_tiny_move)
(make_avr_pass_fuse_add): New protos.
* config/avr/avr.md [AVR_TINY]: New post-reload splitter uses
avr_split_tiny_move to split indirect memory accesses.
(gen_move_clobbercc): New define_expand helper.
* config/avr/avr.cc (avr_pass_data_fuse_add): New pass data.
(avr_pass_fuse_add): New class from rtl_opt_pass.
(make_avr_pass_fuse_add, avr_split_tiny_move): New functions.
(reg_seen_between_p, emit_move_ccc, emit_move_ccc_after): New functions.
(avr_legitimate_address_p) [AVR_TINY]: Don't restrict offsets
of PLUS addressing for AVR_TINY.
(avr_regno_mode_code_ok_for_base_p) [AVR_TINY]: Ignore -mstrict-X.
(avr_out_plus_1) [AVR_TINY]: Tweak ++Y and --Y.
(avr_mode_code_base_reg_class) [AVR_TINY]: Always return POINTER_REGS.

3 months agolibstdc++: Fix std::basic_format_arg::handle for BasicFormatters
Jonathan Wakely [Wed, 28 Feb 2024 15:05:08 +0000 (15:05 +0000)] 
libstdc++: Fix std::basic_format_arg::handle for BasicFormatters

std::basic_format_arg::handle is supposed to format its value as const
if that is valid, to reduce the number of instantiations of the
formatter's format function. I made a silly typo so that it checks
formattable_with<TD, Context> not formattable_with<const TD, Context>,
which breaks support for BasicFormatters i.e. ones that can only format
non-const types.

There's a static_assert in the handle constructor which is supposed to
improve diagnostics for trying to format a const argument with a
formatter that doesn't support it. That condition can't fail, because
the std::basic_format_arg constructor is already constrained to check
that the argument type is formattable. The static_assert can be removed.

libstdc++-v3/ChangeLog:

* include/std/format (basic_format_arg::handle::__maybe_const_t):
Fix condition to check if const type is formattable.
(basic_format_arg::handle::handle(T&)): Remove redundant
static_assert.
* testsuite/std/format/formatter/basic.cc: New test.

3 months agolibstdc++: Fix conditions for using memcmp in std::lexicographical_compare_three_way...
Jonathan Wakely [Tue, 27 Feb 2024 17:50:34 +0000 (17:50 +0000)] 
libstdc++: Fix conditions for using memcmp in std::lexicographical_compare_three_way [PR113960]

The change in r11-2981-g2f983fa69005b6 meant that
std::lexicographical_compare_three_way started to use memcmp for
unsigned integers on big endian targets, but for that to be valid we
need the two value types to have the same size and we need to use that
size to compute the length passed to memcmp.

I already defined a __is_memcmp_ordered_with trait that does the right
checks, std::lexicographical_compare_three_way just needs to use it.

libstdc++-v3/ChangeLog:

PR libstdc++/113960
* include/bits/stl_algobase.h (__is_byte_iter): Replace with ...
(__memcmp_ordered_with): New concept.
(lexicographical_compare_three_way): Use __memcmp_ordered_with
instead of __is_byte_iter. Use correct length for memcmp.
* testsuite/25_algorithms/lexicographical_compare_three_way/113960.cc:
New test.

3 months agoAVR: target/114132 - Code sets up a frame pointer without need.
Georg-Johann Lay [Thu, 29 Feb 2024 17:08:45 +0000 (18:08 +0100)] 
AVR: target/114132 - Code sets up a frame pointer without need.

The condition CUMULATIVE_ARGS.nregs == 0 in avr_frame_pointer_required_p()
means that no more argument registers are left, but that's not the same
condition that tells whether an argument pointer is required.

PR target/114132
gcc/
* config/avr/avr.h (CUMULATIVE_ARGS) <has_stack_args>: New field.
* config/avr/avr.cc (avr_init_cumulative_args): Initialize it.
(avr_function_arg): Set it.
(avr_frame_pointer_required_p): Use it instead of .nregs.

gcc/testsuite/
* gcc.target/avr/pr114132-1.c: New test.
* gcc.target/avr/torture/pr114132-2.c: New test.

3 months agoc++: -Wuninitialized when binding a ref to uninit DM [PR113987]
Marek Polacek [Tue, 20 Feb 2024 20:55:55 +0000 (15:55 -0500)] 
c++: -Wuninitialized when binding a ref to uninit DM [PR113987]

This PR asks that our -Wuninitialized for mem-initializers does
not warn when binding a reference to an uninitialized data member.
We already check !INDIRECT_TYPE_P in find_uninit_fields_r, but
that won't catch binding a parameter of a reference type to an
uninitialized field, as in:

  struct S { S (int&); };
  struct T {
      T() : s(i) {}
      S s;
      int i;
  };

This patch adds a new function to handle this case.

PR c++/113987

gcc/cp/ChangeLog:

* call.cc (conv_binds_to_reference_parm_p): New.
* cp-tree.h (conv_binds_to_reference_parm_p): Declare.
* init.cc (find_uninit_fields_r): Call it.

gcc/testsuite/ChangeLog:

* g++.dg/warn/Wuninitialized-15.C: Turn dg-warning into dg-bogus.
* g++.dg/warn/Wuninitialized-34.C: New test.

3 months agoFix PR libcc1/113977
Tom Tromey [Tue, 27 Feb 2024 01:21:03 +0000 (18:21 -0700)] 
Fix PR libcc1/113977

PR libcc1/113977 points out a case where a simple expression is
rejected with a compiler error message.  The bug here is that gdb does
not inform the plugin of the correct alignment -- in fact, there is no
way to do that.

This patch adds a new method to allow the alignment to be set, and
bumps the C front end protocol version.

It also includes some updates to various comments in 'include', done
here to simplify the merge to binutils-gdb.

include

* gcc-cp-interface.h (gcc_cp_fe_context_function): Update
comment.
* gcc-c-interface.h (enum gcc_c_api_version) <GCC_C_FE_VERSION_2>:
New constant.
(gcc_c_fe_context_function): Update comment.
* gcc-c-fe.def (finish_record_with_alignment): New method.
Update documentation.

libcc1

PR libcc1/113977
* libcc1plugin.cc (plugin_finish_record_or_union): New function.
(plugin_finish_record_or_union): Rewrite.
(plugin_init): Use GCC_C_FE_VERSION_2.
* libcc1.cc (c_vtable): Use GCC_C_FE_VERSION_2.
(gcc_c_fe_context): Check for GCC_C_FE_VERSION_2.

3 months agoFix version negotiation in libcc1 plugins
Tom Tromey [Fri, 23 Feb 2024 02:36:53 +0000 (19:36 -0700)] 
Fix version negotiation in libcc1 plugins

This fixes version negotiation in the libcc1 plugins.  It's done in a
simple way: the version number from the context object is now passed
to base_gdb_plugin.

The idea behind this is that when the client (gdb) requests version N,
the plugin should respond with the newest version that it knows of
that is backward compatible to N.  That is, the connection can be
upgraded.  Note that the protocol does not change much, and no
backward incompatibilities have ever been needed.

The C plugin is also changed to advertise GCC_C_FE_VERSION_1.

The version negotiation approach should of course be documented, but I
did that in a subsequent patch, in order to only have one patch
touching the 'include' directory and thus needing a merge to
binutils-gdb.

libcc1

* libcp1.cc (libcp1::libcp1): Use FE version number from context.
* libcc1.cc (libcc1::libcc1): Use FE version number from context.
(c_vtable): Use GCC_C_FE_VERSION_1.

3 months agoChange 'v1' float and int code to fall back to v0
Tom Tromey [Fri, 23 Feb 2024 02:34:23 +0000 (19:34 -0700)] 
Change 'v1' float and int code to fall back to v0

While working on another patch, I discovered that the libcc1 plugin
code never did version negotiation correctly.  So, the patches to
introduce v1 never did anything -- the new code, as far as I know, has
never been run.

Making version negotiation work shows that the existing code causes
crashes.  For example, safe_lookup_builtin_type might return
error_mark_node in some cases, which the callers aren't prepared to
accept.

Looking into it some more, I couldn't find any justification for this
v1 code for the C compiler plugin.  Since it's not run at all, it's
also clear that removing it doesn't cause any regressions in gdb.

However, rather than remove it, this patch changes it to handle
ERROR_MARK better, and then to fall back to the v0 code if the new
code fails to find the type it's looking for.

libcc1

* libcc1plugin.cc (safe_lookup_builtin_type): Handle ERROR_MARK.
(plugin_int_type): Fall back to plugin_int_type_v0.
(plugin_float_type): Fall back to plugin_float_type_v0.

3 months agoPR modula2/102344 TestLong4.mod FAILs
Gaius Mulley [Thu, 29 Feb 2024 13:42:30 +0000 (13:42 +0000)] 
PR modula2/102344 TestLong4.mod FAILs

This is a testsuite fix for TestLong4.mod so that it
succeeds on 32 bit systems.  The original TestLong4.mod has
been rewritten as testing MAX(LONGCARD) into the variable l.
The new testlong4.mod has been added to cpp/pass.  The new
testcode uses the C preprocessor to select the appropriate
constant literal depending upon __SIZEOF_LONG__.

gcc/testsuite/ChangeLog:

PR modula2/102344
* gm2/pim/pass/TestLong4.mod: Rewrite.
* gm2/cpp/pass/testlong4.mod: New test.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
3 months agoaarch64: Fix memtag builtins vs GC [PR108174]
Andrew Pinski [Thu, 29 Feb 2024 06:39:32 +0000 (22:39 -0800)] 
aarch64: Fix memtag builtins vs GC [PR108174]

The memtag builtins were being GC'ed away so we end up
with a crash sometimes (maybe even wrong code).
This fixes that issue by adding GTY on the variable/struct
aarch64_memtag_builtin_data.

Committed as obvious after a build/test for aarch64-linux-gnu.

PR target/108174

gcc/ChangeLog:

* config/aarch64/aarch64-builtins.cc (aarch64_memtag_builtin_data): Make
static and mark with GTY.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/acle/memtag_4.c: New test.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
3 months agoLoongArch: Remove unneeded sign extension after crc/crcc instructions
Xi Ruoyao [Sun, 25 Feb 2024 12:44:34 +0000 (20:44 +0800)] 
LoongArch: Remove unneeded sign extension after crc/crcc instructions

The specification of crc/crcc instructions is clear that the output is
sign-extended to GRLEN.  Add a define_insn to tell the compiler this
fact and allow it to remove the unneeded sign extension on crc/crcc
output.  As crc/crcc instructions are usually used in a tight loop,
this should produce a significant performance gain.

gcc/ChangeLog:

* config/loongarch/loongarch.md
(loongarch_<crc>_w_<size>_w_extended): New define_insn.

gcc/testsuite/ChangeLog:

* gcc.target/loongarch/crc-sext.c: New test;

3 months agoLoongArch: NFC: Deduplicate crc instruction defines
Xi Ruoyao [Sun, 25 Feb 2024 12:40:41 +0000 (20:40 +0800)] 
LoongArch: NFC: Deduplicate crc instruction defines

Introduce an iterator for UNSPEC_CRC and UNSPEC_CRCC to make the next
change easier.

gcc/ChangeLog:

* config/loongarch/loongarch.md (CRC): New define_int_iterator.
(crc): New define_int_attr.
(loongarch_crc_w_<size>_w, loongarch_crcc_w_<size>_w): Unify
into ...
(loongarch_<crc>_w_<size>_w): ... here.

3 months agoc++: Support lambdas attached to more places in modules [PR111710]
Nathaniel Shead [Fri, 16 Feb 2024 04:52:48 +0000 (15:52 +1100)] 
c++: Support lambdas attached to more places in modules [PR111710]

The fix for PR107398 weakened the restrictions that lambdas must belong
to namespace scope. However this was not sufficient: we also need to
allow lambdas attached to FIELD_DECLs, PARM_DECLs, and TYPE_DECLs.

For field decls we key the lambda to its class rather than the field
itself. Otherwise we can run into issues when deduplicating the lambda's
TYPE_DECL, because when loading its context we load the containing field
before we've deduplicated the keyed lambda, causing mismatches; by
keying to the class instead we defer checking keyed declarations until
deduplication has completed.

Additionally, by [basic.link] p15.2 a lambda defined anywhere in a
class-specifier should not be TU-local, which includes base-class
declarations, so ensure that lambdas declared there are keyed
appropriately as well.

Because this now requires 'DECL_MODULE_KEYED_DECLS_P' to be checked on a
fairly large number of different kinds of DECLs, and that in general
it's safe to just get 'false' as a result of a check on an unexpected
DECL type, this patch also removes the tree checking from the accessor.

Finally, to handle deduplicating templated lambda fields, we need to
ensure that we can determine that two lambdas from different field decls
match, so we ensure that we also deduplicate LAMBDA_EXPRs on stream in.

PR c++/111710

gcc/cp/ChangeLog:

* cp-tree.h (DECL_MODULE_KEYED_DECLS_P): Remove tree checking.
(struct lang_decl_base): Update comments and fix whitespace.
* module.cc (trees_out::lang_decl_bools): Always write
module_keyed_decls_p flag...
(trees_in::lang_decl_bools): ...and always read it.
(trees_out::decl_value): Handle all kinds of keyed decls.
(trees_in::decl_value): Likewise.
(trees_in::tree_value): Deduplicate LAMBDA_EXPRs.
(maybe_key_decl): Also support lambdas attached to fields,
parameters, and types. Key lambdas attached to fields to their
class.
(trees_out::get_merge_kind): Likewise.
(trees_out::key_mergeable): Likewise.
(trees_in::key_mergeable): Support keyed decls in a TYPE_DECL
container.
* parser.cc (cp_parser_class_head): Start a lambda scope when
parsing base classes.

gcc/testsuite/ChangeLog:

* g++.dg/modules/lambda-7.h: New test.
* g++.dg/modules/lambda-7_a.H: New test.
* g++.dg/modules/lambda-7_b.C: New test.
* g++.dg/modules/lambda-7_c.C: New test.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Reviewed-by: Patrick Palka <ppalka@redhat.com>
Reviewed-by: Jason Merrill <jason@redhat.com>
3 months agoRISC-V: Fix __atomic_compare_exchange with 32 bit value on RV64
Kito Cheng [Wed, 28 Feb 2024 08:01:52 +0000 (16:01 +0800)] 
RISC-V: Fix __atomic_compare_exchange with 32 bit value on RV64

atomic_compare_and_swapsi will use lr.w to do obtain the original value,
which sign extends to DI.  RV64 only has DI comparisons, so we also need
to sign extend the expected value to DI as otherwise the comparison will
fail when the expected value has the 32nd bit set.

gcc/ChangeLog:

PR target/114130
* config/riscv/sync.md (atomic_compare_and_swap<mode>): Sign
extend the expected value if needed.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/pr114130.c: New.

Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
3 months agoAdd libcc1 to bug components
Andrew Pinski [Thu, 29 Feb 2024 02:36:12 +0000 (02:36 +0000)] 
Add libcc1 to bug components

As found by Tom Tromey in https://gcc.gnu.org/pipermail/gcc-patches/2024-February/646807.html
libcc1 is not listed as bug component even though it is there in bugzilla.
This fixes that oversight.

Committed as obvious after testing using git gcc-verify on a patch.

contrib/ChangeLog:

* gcc-changelog/git_commit.py (bug_components): Add libcc1.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
3 months agoFortran - Error compiling PDT Type-bound Procedures [PR82943/86148/86268]
Alexander Westbrooks [Thu, 29 Feb 2024 02:03:46 +0000 (20:03 -0600)] 
Fortran - Error compiling PDT Type-bound Procedures [PR82943/86148/86268]

This patch allows parameterized derived types to compile successfully
when typebound procedures are specified in the type specification.
Furthermore, it allows function calls for PDTs by setting the
f2k_derived space of PDT instances to reference their original template,
thereby giving it referential access to the typebound procedures of the
template. Lastly, it adds a check for deferred length parameters of
PDTs in CLASS declaration statements, and correctly throws an error if
such declarations are missing POINTER or ALLOCATABLE attributes.

2024-02-25  Alexander Westbrooks  <alexanderw@gcc.gnu.org>

gcc/fortran/ChangeLog:
PR fortran/82943
PR fortran/86148
PR fortran/86268
* decl.cc (gfc_get_pdt_instance): Set the PDT instance field
'f2k_derived', if not set already, to point to the given
PDT template 'f2k_derived' namespace in order to give the
PDT instance referential access to the typebound procedures
of the template.
* gfortran.h (gfc_pdt_is_instance_of): Add prototype.
* resolve.cc (resolve_typebound_procedure): If the derived type
does not have the attribute 'pdt_template' set, compare the
dummy argument to the 'resolve_bindings_derived' type like usual.
If the derived type is a 'pdt_template', then check if the
dummy argument is an instance of the PDT template. If the derived
type is a PDT template, and the dummy argument is an instance of
that template, but the dummy argument 'param_list' is not
SPEC_ASSUMED, check if there are any LEN parameters in the
dummy argument. If there are no LEN parameters, then this implies
that there are only KIND parameters in the dummy argument.
If there are LEN parameters, this would be an error, for all
LEN parameters for the dummy argument MUST be assumed for
typebound procedures of PDTs.
(resolve_pdt): Add a check for ALLOCATABLE and POINTER attributes for
SPEC_DEFERRED parameters of PDT class symbols.  ALLOCATABLE and
POINTER attributes for a PDT class symbol are stored in the
'class_pointer' and 'allocatable' attributes of the '_data'
component respectively.
* symbol.cc (gfc_pdt_is_instance_of): New function.

gcc/testsuite/ChangeLog:
PR fortran/82943
PR fortran/86148
PR fortran/86268
* gfortran.dg/pdt_4.f03: Update modified error message.
* gfortran.dg/pdt_34.f03: New test.
* gfortran.dg/pdt_35.f03: New test.
* gfortran.dg/pdt_36.f03: New test.
* gfortran.dg/pdt_37.f03: New test.

Signed-off-by: Alexander Westbrooks <alexanderw@gcc.gnu.org>
3 months agoDaily bump.
GCC Administrator [Thu, 29 Feb 2024 00:16:43 +0000 (00:16 +0000)] 
Daily bump.

3 months agoc++: Fix explicit instantiation of const variable templates after earlier implicit...
Jakub Jelinek [Wed, 28 Feb 2024 22:20:13 +0000 (23:20 +0100)] 
c++: Fix explicit instantiation of const variable templates after earlier implicit instantation [PR113976]

Already previously instantiated const variable templates had
cp_apply_type_quals_to_decl called when they were instantiated,
but if they need runtime initialization, their TREE_READONLY flag
has been subsequently cleared.
Explicit variable template instantiation calls grokdeclarator which
calls cp_apply_type_quals_to_decl on them again, setting TREE_READONLY
flag again, but nothing clears it afterwards, so we emit such
instantiations into rodata sections and segfault when the dynamic
initialization attempts to initialize them.

The following patch fixes that by not calling cp_apply_type_quals_to_decl
on already instantiated variable declarations.

2024-02-28  Jakub Jelinek  <jakub@redhat.com>
    Patrick Palka  <ppalka@redhat.com>

PR c++/113976
* decl.cc (grokdeclarator): Don't call cp_apply_type_quals_to_decl
on DECL_TEMPLATE_INSTANTIATED VAR_DECLs.

* g++.dg/cpp1y/var-templ87.C: New test.

3 months agoAdd myself to write after approval and DCO
Fangrui Song [Wed, 28 Feb 2024 20:57:20 +0000 (12:57 -0800)] 
Add myself to write after approval and DCO

ChangeLog:

* MAINTAINERS: Add myself.

Signed-off-by: Fangrui Song <maskray@gcc.gnu.org>
3 months agobpf: renames coreout.* files to btfext-out.*.
Cupertino Miranda [Mon, 12 Feb 2024 17:56:04 +0000 (17:56 +0000)] 
bpf: renames coreout.* files to btfext-out.*.

gcc/ChangeLog:

* config.gcc (target_gtfiles): Change coreout to btfext-out.
(extra_objs): Change coreout to btfext-out.
* config/bpf/coreout.cc: Rename to btfext-out.cc.
* config/bpf/btfext-out.cc: Add.
* config/bpf/coreout.h: Rename to btfext-out.h.
* config/bpf/btfext-out.h: Add.
* config/bpf/core-builtins.cc: Change include.
* config/bpf/core-builtins.h: Change include.
* config/bpf/t-bpf: Accomodate renamed files.

3 months agobpf: implementation of func_info in .BTF.ext.
Cupertino Miranda [Mon, 12 Feb 2024 17:46:03 +0000 (17:46 +0000)] 
bpf: implementation of func_info in .BTF.ext.

Kernel verifier complains in some particular cases for missing func_info
implementation in .BTF.ext. This patch implements it.

Strings are cached locally in coreout.cc to avoid adding duplicated
strings in the string list. This string deduplication should eventually
be moved to the CTFC functions such that this happens widely.

With this implementation, the CO-RE relocations information was also
simplified and integrated with the FuncInfo structures.

gcc/Changelog:

PR target/113453
* config/bpf/bpf.cc (bpf_function_prologue): Define target
hook.
* config/bpf/coreout.cc (brf_ext_info_section)
(btf_ext_info): Move from coreout.h
(btf_ext_funcinfo, btf_ext_lineinfo): Add struct.
(bpf_core_reloc): Rename to btf_ext_core_reloc.
(btf_ext): Add static variable.
(btfext_info_sec_find_or_add, SEARCH_NODE_AND_RETURN)
(bpf_create_or_find_funcinfo, bpt_create_core_reloc)
(btf_ext_add_string, btf_funcinfo_type_callback)
(btf_add_func_info_for, btf_validate_funcinfo)
(btf_ext_info_len, output_btfext_func_info): Add function.
(output_btfext_header, bpf_core_reloc_add)
(output_btfext_core_relocs, btf_ext_init, btf_ext_output):
Change to support new structs.
* config/bpf/coreout.h (btf_ext_funcinfo, btf_ext_lineinfo):
Move and change in coreout.cc.
(btf_add_func_info_for, btf_ext_add_string): Add prototypes.

gcc/testsuite/ChangeLog:
PR target/113453
* gcc.target/bpf/btfext-funcinfo-nocore.c: Add.
* gcc.target/bpf/btfext-funcinfo.c: Add.
* gcc.target/bpf/core-attr-5.c: Fix regexp.
* gcc.target/bpf/core-attr-6.c: Fix regexp.
* gcc.target/bpf/core-builtin-fieldinfo-offset-1.c: Fix regexp.
* gcc.target/bpf/core-section-1.c: Fix regexp.

3 months agobpf: Always emit .BTF.ext section if generating BTF
Cupertino Miranda [Mon, 12 Feb 2024 17:37:37 +0000 (17:37 +0000)] 
bpf: Always emit .BTF.ext section if generating BTF

BPF applications, when generating BTF information should always create a
.BTF.ext section.
Current implementation was only creating it when -mco-re option was used.
This patch makes .BTF.ext always be generated for BPF target objects.
The patch also adds conditions around btf_finalize function call
such that BTF deallocation happens later for BPF target.
For BPF, btf_finalize is only called after .BTF.ext is generated.

gcc/ChangeLog:

* config/bpf/bpf.cc (bpf_option_override): Make .BTF.ext
enabled by default for BPF.
(bpf_file_end): Call BTF deallocation.
(bpf_asm_init_sections): Correct condition.
* dwarf2ctf.cc (ctf_debug_finalize): Conditionally execute BTF
deallocation.
(ctf_debuf_finish): Correct condition for calling
ctf_debug_finalize.

3 months agobtf: add BTF_KIND_FUNC traversal function.
Cupertino Miranda [Mon, 12 Feb 2024 17:36:21 +0000 (17:36 +0000)] 
btf: add BTF_KIND_FUNC traversal function.

The patch adds a traversal function to traverse all BTF_KIND_FUNC nodes
with a callback function. Used for .BTF.ext section content creation.

gcc/ChangeLog:

* btfout.cc (output_btf_func_types): Use FOR_EACH_VEC_ELT.
(traverse_btf_func_types): Define function.
* ctfc.h (funcs_traverse_callback): Typedef for function
prototype.
(traverse_btf_func_types): Add prototype.

3 months agobtf: fix type id in BTF_KIND_FUNC struct data.
Cupertino Miranda [Tue, 30 Jan 2024 19:01:12 +0000 (19:01 +0000)] 
btf: fix type id in BTF_KIND_FUNC struct data.

This patch corrects the addition of +1 on the type id, which originally
was done in the wrong location and led to func_dtd->dtd_type for
BTF_KIND_FUNC struct data to contain the type id of the previous entry.

gcc/ChangeLog:

* btfout.cc (btf_collect_dataset): Corrects BTF type id.

3 months agoFortran testsuite: fix invalid Fortran in testcase
Harald Anlauf [Tue, 27 Feb 2024 20:51:53 +0000 (21:51 +0100)] 
Fortran testsuite: fix invalid Fortran in testcase

gcc/testsuite/ChangeLog:

* gfortran.dg/pr101026.f: Let variables used in specification
expression be passed as dummy arguments

3 months agolibstdc++: Fix noexcept on dtors in <experimental/scope> [PR114152]
Jonathan Wakely [Wed, 28 Feb 2024 14:45:18 +0000 (14:45 +0000)] 
libstdc++: Fix noexcept on dtors in <experimental/scope> [PR114152]

The PR points out that the destructors all have incorrect
noexcept-specifiers.

libstdc++-v3/ChangeLog:

PR libstdc++/114152
* include/experimental/scope (scope_exit scope_fail): Make
destructor unconditionally noexcept.
(scope_sucess): Fix noexcept-specifier.
* testsuite/experimental/scopeguard/114152.cc: New test.

3 months agolibstdc++: Change some URLs in the manual to use https
Jonathan Wakely [Wed, 28 Feb 2024 14:36:28 +0000 (14:36 +0000)] 
libstdc++: Change some URLs in the manual to use https

libstdc++-v3/ChangeLog:

* doc/xml/manual/appendix_contributing.xml: Change URLs to use
https.
* doc/html/manual/*: Regenerate.

3 months agolibstdc++: Update outdated docs on contributing
Jonathan Wakely [Wed, 28 Feb 2024 11:24:47 +0000 (11:24 +0000)] 
libstdc++: Update outdated docs on contributing

We don't want a separate ChangeLog submission now.

libstdc++-v3/ChangeLog:

* doc/xml/manual/appendix_contributing.xml: Replace outdated
info on ChangeLog entries.
* doc/html/manual/appendix_contributing.html: Regenerate.

3 months agotree-optimization/113831 - revert original fix
Richard Biener [Wed, 28 Feb 2024 12:45:57 +0000 (13:45 +0100)] 
tree-optimization/113831 - revert original fix

This reverts the original fix for PR113831 which is better fixed by
the PR114121 fix.  I've XFAILed instead of removing the PR108355
testcase again.

PR tree-optimization/113831
PR tree-optimization/108355
* tree-ssa-sccvn.cc (copy_reference_ops_from_ref): Revert
PR113831 fix.

* gcc.dg/tree-ssa/ssa-fre-104.c: XFAIL.

3 months agotree-optimization/114121 - wrong VN with context sensitive range info
Richard Biener [Wed, 28 Feb 2024 11:37:07 +0000 (12:37 +0100)] 
tree-optimization/114121 - wrong VN with context sensitive range info

When VN ends up exploiting range-info specifying the ao_ref offset
and max_size we have to make sure to reflect this in the hashtable
entry for the recorded expression.  The PR113831 fix handled the
case where we can encode this in the operands themselves but this
bug shows the issue is more widespread.

So instead of altering the operands the following instead records
this extra info that's possibly used, only throwing it away when
the value-numbering didn't come up with a non-VARYING value which
is an important detail to preserve CSE as opposed to constant
folding which is where all cases currently known popped up.

With this the original PR113831 fix can be reverted.

PR tree-optimization/114121
* tree-ssa-sccvn.h (vn_reference_s::offset,
vn_reference_s::max_size): New fields.
(vn_reference_insert_pieces): Adjust prototype.
* tree-ssa-pre.cc (phi_translate_1): Preserve offset/max_size.
* tree-ssa-sccvn.cc (vn_reference_eq): Compare offset and
size, allow using "don't know" state.
(vn_walk_cb_data::finish): Pass along offset/max_size.
(vn_reference_lookup_or_insert_for_pieces): Take offset and
max_size as argument and use it.
(vn_reference_lookup_3): Properly adjust offset and max_size
according to the adjusted ao_ref.
(vn_reference_lookup_pieces): Initialize offset and max_size.
(vn_reference_lookup): Likewise.
(vn_reference_lookup_call): Likewise.
(vn_reference_insert): Likewise.
(visit_reference_op_call): Likewise.
(vn_reference_insert_pieces): Take offset and max_size
as argument and use it.

* gcc.dg/torture/pr114121.c: New testcase.

3 months agolibstdc++: Add more nodiscard uses in <vector>
Jonathan Wakely [Mon, 26 Feb 2024 13:09:02 +0000 (13:09 +0000)] 
libstdc++: Add more nodiscard uses in <vector>

Add [[nodiscard]] to vector::at and to comparison operators.

libstdc++-v3/ChangeLog:

* include/bits/stl_bvector.h (vector<bool, A>::at): Add
nodiscard.
* include/bits/stl_vector.h (vector<T, A>::at): Likewise.
(operator==, operator<=>, operator<, operator!=, operator>)
(operator<=, operator>=): Likewise.
* include/debug/vector (operator==, operator<=>, operator<)
(operator!=, operator>, operator<=, operator>=): Likewise.
* testsuite/23_containers/vector/nodiscard.cc: New test.

3 months agolibstdc++: Consistently use noexcept, constexpr, nodiscard on bitmask ops
Jonathan Wakely [Mon, 26 Feb 2024 11:47:27 +0000 (11:47 +0000)] 
libstdc++: Consistently use noexcept, constexpr, nodiscard on bitmask ops

The bitwise operators for combining bitmask types such as std::launch
are not consistently annotated with noexcept, constexpr, and nodiscard.

This is the subject of LWG 3977, although the proposed resolution
doesn't work. We can make the changes in libstdc++ anyway though.

libstdc++-v3/ChangeLog:

* include/bits/atomic_base.h (operator|, operator&): Add
noexcept.
* include/bits/fs_fwd.h (operator&, operator|, operator^)
(operator~): Add nodiscard to overloads for copy_options, perms,
perm_options, and directory_options.
* include/bits/ios_base.h (operator&, operator|, operator^)
(operator~): Add nodiscard and noexcept to overloads for
_Ios_Fmtflags, _Ios_Openmode, and _Ios_Iostate.
(operator|=, operator&=, operator^=): Add constexpr for C++14.
* include/bits/regex_constants.h (operator&, operator|, operator^)
(operator~): Add nodiscard and noexcept to overloads for
syntax_option_type and match_flag_type.
(operator|=, operator&=, operator^=): Add noexcept.
* include/std/charconv (operator&, operator|, operator^)
(operator~): Add nodiscard to overloads for chars_format.
* include/std/future (operator&, operator|, operator^)
(operator~): Add nodiscard for overloads for launch.
(operator&=, operator|=, operator^=): Add constexpr for C++14.
* include/experimental/bits/fs_fwd.h  (operator&, operator|)
(operator^, operator~): Add nodiscard to overloads for
copy_options, perms, and directory_options.
* testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc:
Add dg-warning for nodiscard warnings.
* testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc:
Likewise.
* testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc:
Likewise.
* testsuite/27_io/filesystem/operations/bitmask_types.cc:
New test.

3 months agolibstdc++: Test error handling in std::print
Jonathan Wakely [Thu, 22 Feb 2024 13:06:59 +0000 (13:06 +0000)] 
libstdc++: Test error handling in std::print

The standard requires an exception if std::print fails to write to a
FILE*. When writing to a std::ostream, failure to format the arguments
doesn't affect the stream state, but failure to write to the streadm
sets badbit.

libstdc++-v3/ChangeLog:

* testsuite/27_io/basic_ostream/print/1.cc: Check error
handling.
* testsuite/27_io/print/1.cc: Likewise.

3 months agolibstdc++: Fix std::print for Cygwin
Jonathan Wakely [Wed, 21 Feb 2024 18:10:00 +0000 (18:10 +0000)] 
libstdc++: Fix std::print for Cygwin

Cygwin should use std::fwrite, not WriteConsoleW. And the -lstdc++exp
library is only needed when running the tests on *-*-mingw*.

libstdc++-v3/ChangeLog:

* include/std/ostream (vprint_unicode) [__CYGWIN__]: Use POSIX
code path for Cygwin instead of Windows.
* include/std/print (vprint_unicode) [__CYGWIN__]: Likewise.
* testsuite/27_io/basic_ostream/print/1.cc: Only add -lstdc++exp
for *-*-mingw* targets.
* testsuite/27_io/print/1.cc: Likewise.

3 months agolibstdc++: Include <bits/stl_iterator.h> in <bits/alloc_traits.h>
Jonathan Wakely [Wed, 21 Feb 2024 15:12:49 +0000 (15:12 +0000)] 
libstdc++: Include <bits/stl_iterator.h> in <bits/alloc_traits.h>

libstdc++-v3/ChangeLog:

* include/bits/alloc_traits.h: Include <bits/stl_iterator.h> for
__make_move_if_noexcept_iterator.

3 months agolibstdc++: Add more [[nodiscard]] to <stacktrace>
Jonathan Wakely [Wed, 21 Feb 2024 15:11:46 +0000 (15:11 +0000)] 
libstdc++: Add more [[nodiscard]] to <stacktrace>

libstdc++-v3/ChangeLog:

* include/std/stacktrace: Add nodiscard attribute to all
functions without side effects.

3 months agotestsuite: XFAIL ssa-sink-18.c also on powerpc64 [PR111462]
Jakub Jelinek [Wed, 28 Feb 2024 11:09:04 +0000 (12:09 +0100)] 
testsuite: XFAIL ssa-sink-18.c also on powerpc64 [PR111462]

powerpc64-linux apparently (not very surprisingly) behaves the same
way as powerpc64le-linux and has 4 sunk statements rather than 5,
so we should xfail it on powerpc64*-*-* rather than just powerpc64le-*-*.
powerpc-linux has 3 sunk statements, but the scan pattern is done for
lp64 only as the comment explains.

2024-02-28  Jakub Jelinek  <jakub@redhat.com>

PR testsuite/111462
* gcc.dg/tree-ssa/ssa-sink-18.c: XFAIL also on powerpc64.

3 months agotestsuite: Fix gcc.dg/tree-ssa/builtin-snprintf-6.c XPASS on i?86 -m64 [PR91567]
Rainer Orth [Wed, 28 Feb 2024 10:55:47 +0000 (11:55 +0100)] 
testsuite: Fix gcc.dg/tree-ssa/builtin-snprintf-6.c XPASS on i?86 -m64 [PR91567]

gcc.dg/tree-ssa/builtin-snprintf-6.c currently XPASSes on i?86-*-*
configurations with -m64:

XPASS: gcc.dg/tree-ssa/builtin-snprintf-6.c scan-tree-dump-times optimized "Function test_assign_aggregate" 1

(seen e.g. on i386-pc-solaris2.11, i686-pc-linux-gnu, or i386-apple-darwin*).

The problem is that the xfail only handles x86_64, ignoring that i?86
configurations can also be multilibbed.

This patch fixes the by handling both forms alike.

Tested on i386-pc-solaris2.11, amd64-pc-solaris2.11,
sparc-sun-solaris2.11, and sparcv9-sun-solaris2.11.

2024-02-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

gcc/testsuite:
PR tree-optimization/91567
* gcc.dg/tree-ssa/builtin-snprintf-6.c (scan-tree-dump-times):
Treat i?86-*-* like x86_64-*-*.

3 months agotestsuite: Add testcase for recently fixed PR [PR114075]
Jakub Jelinek [Wed, 28 Feb 2024 10:49:29 +0000 (11:49 +0100)] 
testsuite: Add testcase for recently fixed PR [PR114075]

This adds testcase from PR114075 which has been fixed by the r14-9205
change on s390x-linux with -march=z13.

2024-02-28  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/114075
* gcc.dg/gomp/pr114075.c: New test.

3 months agoOnly emulate integral vectors.
Juergen Christ [Mon, 19 Feb 2024 09:10:35 +0000 (10:10 +0100)] 
Only emulate integral vectors.

The emulation via word mode tries to perform integer arithmetic on floating
point values instead of floating point arithmetic.  This leads to
mis-compilations.

Failure occured on s390x on these existing test cases:
gcc.dg/vect/tsvc/vect-tsvc-s112.c
gcc.dg/vect/tsvc/vect-tsvc-s113.c
gcc.dg/vect/tsvc/vect-tsvc-s119.c
gcc.dg/vect/tsvc/vect-tsvc-s121.c
gcc.dg/vect/tsvc/vect-tsvc-s131.c
gcc.dg/vect/tsvc/vect-tsvc-s132.c
gcc.dg/vect/tsvc/vect-tsvc-s2233.c
gcc.dg/vect/tsvc/vect-tsvc-s421.c
gcc.dg/vect/vect-alias-check-14.c
gcc.target/s390/vector/partial/s390-vec-length-epil-run-1.c
gcc.target/s390/vector/partial/s390-vec-length-epil-run-3.c
gcc.target/s390/vector/partial/s390-vec-length-full-run-3.c

gcc/ChangeLog:

PR tree-optimization/114075

* tree-vect-stmts.cc (vectorizable_operation): Don't emulate floating
point vectors

Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
3 months agographite: Fix non-INTEGER_TYPE integral comparison handling [PR114041]
Jakub Jelinek [Wed, 28 Feb 2024 08:59:45 +0000 (09:59 +0100)] 
graphite: Fix non-INTEGER_TYPE integral comparison handling [PR114041]

The following testcases are miscompiled, because graphite ignores boolean,
enumerated or _BitInt comparisons, rewrites the code as if the comparisons
were always true or always false.

The INTEGER_TYPE checks were initially added in r6-2239 but at that point
it was both in add_conditions_to_domain and in parameter_index_in_region.
Later on the check was also added to stmt_simple_for_scop_p, and finally
r8-3931 changed the stmt_simple_for_scop_p check to INTEGRAL_TYPE_P
and turned the parameter_index_in_region -> assign_parameter_index_in_region
into INTEGRAL_TYPE_P assertion, but the add_conditions_to_domain check
for INTEGER_TYPE remained.

The following patch uses INTEGRAL_TYPE_P to complete the change.

2024-02-28  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/114041
* graphite-sese-to-poly.cc (add_conditions_to_domain): Check for
INTEGRAL_TYPE_P check rather than INTEGER_TYPE.

* gcc.dg/graphite/run-id-pr114041-1.c: New test.
* gcc.dg/graphite/run-id-pr114041-2.c: New test.

3 months agogimple-fold: Use bitwise vector types rather than barely supported huge integral...
Jakub Jelinek [Wed, 28 Feb 2024 08:40:15 +0000 (09:40 +0100)] 
gimple-fold: Use bitwise vector types rather than barely supported huge integral types in memcpy etc. folding [PR113988]

The following patch changes the memcpy etc. folding to use bitwise vector
types rather  than huge INTEGER_TYPEs for copying of > MAX_FIXED_MODE_SIZE
lengths.  The problem with the huge INTEGER_TYPEs is that they aren't
supported very much, usually there are just optabs to handle moves of them,
perhaps misaligned moves and that is it, so they pose problems e.g. to
BITINT_TYPE lowering.

2024-02-28  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/113988
* stor-layout.h (bitwise_mode_for_size): Declare.
* stor-layout.cc (bitwise_mode_for_size): New function.
* gimple-fold.cc (gimple_fold_builtin_memory_op): Use it.
Use bitwise_type_for_mode instead of build_nonstandard_integer_type.
Use BITS_PER_UNIT instead of 8.

* gcc.dg/bitint-91.c: New test.

3 months agotestsuite: Add c23-stdarg-4.c test variant where all functions return large struct
Jakub Jelinek [Wed, 28 Feb 2024 08:26:51 +0000 (09:26 +0100)] 
testsuite: Add c23-stdarg-4.c test variant where all functions return large struct

I think we have no coverage for the case where structure_value_addr_parm and
TYPE_NO_NAMED_ARGS_STDARG_P are both true.  The
  if (type_arg_types != 0)
    n_named_args
      = (list_length (type_arg_types)
         /* Count the struct value address, if it is passed as a parm.  */
         + structure_value_addr_parm);
  else if (TYPE_NO_NAMED_ARGS_STDARG_P (funtype))
    n_named_args = 0;
  else
    /* If we know nothing, treat all args as named.  */
    n_named_args = num_actuals;
code should probably have n_named_args = structure_value_addr_parm;
instead of n_named_args = 0;, this testcase is an attempt to see if
it is broken on any target.

2024-02-28  Jakub Jelinek  <jakub@redhat.com>

* gcc.dg/c23-stdarg-6.c: New test.

3 months agoc++: Revert deferring emission of inline variables [PR114013]
Nathaniel Shead [Wed, 28 Feb 2024 00:20:53 +0000 (11:20 +1100)] 
c++: Revert deferring emission of inline variables [PR114013]

This is a (partial) reversion of r14-8987-gdd9d14f7d53 to return to
eagerly emitting inline variables to the middle-end when they are
declared. 'import_export_decl' will still continue to accept them, as
allowing this is a pure extension and doesn't seem to cause issues with
modules, but otherwise deferring the emission of inline variables
appears to cause issues on some targets and prevents some code using
inline variable templates from correctly linking.

There might be a more targetted way to support this, but due to the
complexity of handling linkage and emission I'd prefer to wait till
GCC 15 to explore our options.

PR c++/113970
PR c++/114013

gcc/cp/ChangeLog:

* decl.cc (make_rtl_for_nonlocal_decl): Don't defer inline
variables.

gcc/testsuite/ChangeLog:

* g++.dg/cpp1z/inline-var10.C: New test.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
3 months agoDaily bump.
GCC Administrator [Wed, 28 Feb 2024 00:16:42 +0000 (00:16 +0000)] 
Daily bump.

3 months agoanalyzer: use correct format code for string literal indices [PR110483,PR111802]
David Malcolm [Tue, 27 Feb 2024 19:49:42 +0000 (14:49 -0500)] 
analyzer: use correct format code for string literal indices [PR110483,PR111802]

On e.g. gcc211 the use of "%li" with unsigned HOST_WIDE_INT led to this warning:
../../src/gcc/analyzer/access-diagram.cc: In member function ‘void ana::string_literal_spatial_item::add_column_for_byte(text_art::table&, const ana::bit_to_table_map&, text_art::style_manager&, ana::byte_offset_t, ana::byte_offset_t, int, int) const’:
../../src/gcc/analyzer/access-diagram.cc:1909:40: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=]
          byte_idx_within_string.ulow ()));
                                        ^
and to all values being erroneously printed as "0".

Fixed thusly.

gcc/analyzer/ChangeLog:
PR analyzer/110483
PR analyzer/111802
* access-diagram.cc
(string_literal_spatial_item::add_column_for_byte): Use %wu for
printing unsigned HOST_WIDE_INT.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
3 months agoi386: psrlq is not used for PERM<a,{0},1,2,3,4> [PR113871]
Uros Bizjak [Tue, 27 Feb 2024 17:41:24 +0000 (18:41 +0100)] 
i386: psrlq is not used for PERM<a,{0},1,2,3,4> [PR113871]

Also handle V2BF mode.

PR target/113871

gcc/ChangeLog:

* config/i386/mmx.md (V248FI): Add V2BF mode.
(V24FI_32): Ditto.

gcc/testsuite/ChangeLog:

* gcc.target/i386/pr113871-5a.c: New test.
* gcc.target/i386/pr113871-5b.c: New test.

3 months agoFix internal error on non-byte-aligned reference in GIMPLE DSE
Eric Botcazou [Tue, 27 Feb 2024 17:01:00 +0000 (18:01 +0100)] 
Fix internal error on non-byte-aligned reference in GIMPLE DSE

This is a regression present on the mainline, 13 and 12 branches.  For the
attached Ada case, it's a tree checking failure on the mainline at -O:

+===========================GNAT BUG DETECTED==============================+
| 14.0.1 20240226 (experimental) [master r14-9171-g4972f97a265]  GCC error:|
| tree check: expected tree that contains 'decl common' structure,         |
| have 'component_ref' in tree_could_trap_p, at tree-eh.cc:2733        |
| Error detected around /home/eric/cvs/gcc/gcc/testsuite/gnat.dg/opt104.adb:

Time is a 10-byte record and Packed_Rec.T is placed at bit-offset 65 because
of the packing. so tree-ssa-dse.cc:setup_live_bytes_from_ref has computed a
const_size of 88 from ref->offset of 65 and ref->max_size of 80.

Then in tree-ssa-dse.cc:compute_trims:

411       int last_live = bitmap_last_set_bit (live);
(gdb) next
412       if (ref->size.is_constant (&const_size))
(gdb)
414           int last_orig = (const_size / BITS_PER_UNIT) - 1;
(gdb)
418           *trim_tail = last_orig - last_live;

(gdb) call debug_bitmap (live)
n_bits = 256, set = {0 1 2 3 4 5 6 7 8 9 10 }
(gdb) p last_live
$33 = 10
(gdb) p const_size
$34 = 80
(gdb) p last_orig
$35 = 9
(gdb) p *trim_tail
$36 = -1

In other words, compute_trims is overlooking the alignment adjustments that
setup_live_bytes_from_ref applied earlier.  Moveover it reads:

  /* We use sbitmaps biased such that ref->offset is bit zero and the bitmap
     extends through ref->size.  So we know that in the original bitmap
     bits 0..ref->size were true.  We don't actually need the bitmap, just
     the REF to compute the trims.  */

but setup_live_bytes_from_ref used ref->max_size instead of ref->size.

It appears that all the callers of compute_trims assume that ref->offset is
byte aligned and that the trimmed bytes are relative to ref->size, so the
patch simply adds an early return if either condition is not fulfilled.

gcc/
* tree-ssa-dse.cc (compute_trims): Fix description.  Return early
if either ref->offset is not byte aligned or ref->size is not known
to be equal to ref->max_size.
(maybe_trim_complex_store): Fix description.
(maybe_trim_constructor_store): Likewise.
(maybe_trim_partially_dead_store): Likewise.

gcc/testsuite/
* gnat.dg/opt104.ads, gnat.dg/opt104.adb: New test.