Robin Dapp cfdab86f20 RISC-V: Emit vector shift pattern for const_vector [PR117353].
In PR117353 and PR117878 we expand a const vector during reload.  For
this we use an unpredicated left shift.  Normally an insn like this is
split but as we introduce it late and cannot create pseudos anymore
it remains unpredicated and is not recognized by the vsetvl pass (where
we expect all insns to be in predicated RVV format).

This patch directly emits a predicated shift instead.  We could
distinguish between !lra_in_progress and lra_in_progress and emit
an unpredicated shift in the former case but we're not very likely
to optimize it anyway so it doesn't seem worth it.

	PR target/117353
	PR target/117878

gcc/ChangeLog:

	* config/riscv/riscv-v.cc (expand_const_vector): Use predicated
	instead of simple shift.

gcc/testsuite/ChangeLog:

	* gcc.target/riscv/rvv/autovec/pr117353.c: New test.
2024-12-13 10:08:11 +01:00
2024-11-26 00:19:26 +00:00
2024-12-11 00:19:28 +00:00
2024-11-24 00:18:09 +00:00
2024-11-19 00:19:52 +00:00
2024-11-30 00:20:11 +00:00
2024-09-21 00:16:55 +00:00
2024-12-09 00:17:22 +00:00
2024-10-26 00:19:39 +00:00
2024-12-13 00:19:02 +00:00
2024-12-11 00:19:28 +00:00
2024-11-21 00:20:27 +00:00
2024-12-11 00:19:28 +00:00
2024-12-10 00:19:34 +00:00
2024-12-12 00:19:00 +00:00
2024-11-19 00:19:52 +00:00
2024-09-24 00:18:14 +00:00
2024-11-19 00:19:52 +00:00
2024-08-29 00:19:25 +00:00
2024-11-26 00:19:26 +00:00
2024-12-13 00:19:02 +00:00
2024-11-19 00:19:52 +00:00
2024-08-24 00:18:13 +00:00
2024-12-04 00:21:20 +00:00
2024-09-12 22:51:00 +08:00
2024-12-12 00:19:00 +00:00
2024-11-19 12:27:33 +01:00

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.
Description
No description provided
Readme 1.5 GiB
Languages
C++ 30.7%
C 30%
Ada 14.5%
D 6.1%
Go 5.7%
Other 12.5%