Go to file
Jakub Jelinek 36ec3f57d3 RISC-V: Fix bad insn splits with paradoxical subregs.
Shifting by more than the size of a SUBREG_REG doesn't work, so we either
need to disable splits if an input is paradoxical, or else we need to
generate a clean temporary for intermediate results.

Jakub wrote the first version of this patch, so gets primary credit for it.

	gcc/
	PR target/91635
	* config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
	extend<SHORT:mode><SUPERQI:mode>2): Don't split if
	paradoxical_subreg_p (operands[0]).
	(*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
	use as intermediate value.

	gcc/testsuite/
	PR target/91635
	* gcc.c-torture/execute/pr91635.c: New test.
	* gcc.target/riscv/shift-shift-4.c: New test.
	* gcc.target/riscv/shift-shift-5.c: New test.

Co-Authored-By: Jim Wilson <jimw@sifive.com>

From-SVN: r275444
2019-09-05 13:32:55 -07:00
config
contrib mklog: Do not print changed functions in testsuite 2019-09-04 08:08:20 +00:00
fixincludes
gcc RISC-V: Fix bad insn splits with paradoxical subregs. 2019-09-05 13:32:55 -07:00
gnattools
gotools
include
INSTALL
intl
libada
libatomic re PR other/79543 (Inappropriate "ld --version" checking) 2019-09-03 14:10:26 +00:00
libbacktrace Remove Cell Broadband Engine SPU targets 2019-09-03 15:08:28 +00:00
libcc1
libcpp [preprocessor/91639] #includes at EOF 2019-09-05 11:23:48 +00:00
libdecnumber
libffi re PR other/79543 (Inappropriate "ld --version" checking) 2019-09-03 14:10:26 +00:00
libgcc Remove Cell Broadband Engine SPU targets 2019-09-03 15:08:28 +00:00
libgfortran Improve PRNG jumping when using threads 2019-09-05 09:59:55 +03:00
libgo compiler, runtime: support and use single argument go:linkname 2019-08-31 03:01:15 +00:00
libgomp re PR other/79543 (Inappropriate "ld --version" checking) 2019-09-03 14:10:26 +00:00
libhsail-rt
libiberty rust-demangle.c (unescape): Remove. 2019-09-03 14:04:32 -06:00
libitm re PR other/79543 (Inappropriate "ld --version" checking) 2019-09-03 14:10:26 +00:00
libobjc
liboffloadmic
libphobos libphobos.exp (libphobos_init): Add multi-lib libgcc dirs to the ld_library_path var. 2019-09-03 08:24:03 +00:00
libquadmath
libsanitizer
libssp
libstdc++-v3 Improve precondition checks for std::span 2019-09-05 14:48:33 +01:00
libvtv
lto-plugin
maintainer-scripts
zlib
.dir-locals.el
.gitattributes
.gitignore Add .clangd and compile_commands.json to .gitignore. 2019-08-28 19:33:28 +00:00
ABOUT-NLS
ar-lib
ChangeLog Remove Cell Broadband Engine SPU targets 2019-09-03 15:08:28 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in
config.guess
config.rpath
config.sub
configure
configure.ac
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.RUNTIME
depcomp
install-sh
libtool-ldflags
libtool.m4
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS Remove Cell Broadband Engine SPU targets 2019-09-03 15:08:28 +00:00
Makefile.def
Makefile.in Makefile.tpl (HOST_EXPORTS): Add CXX_FOR_BUILD. 2019-08-23 15:37:22 -06:00
Makefile.tpl Makefile.tpl (HOST_EXPORTS): Add CXX_FOR_BUILD. 2019-08-23 15:37:22 -06:00
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
README
symlink-tree
test-driver
ylwrap

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.