8sa1-gcc/gcc/testsuite/gcc.target
Kito Cheng d0e0c1300f RISC-V: Describe correct USEs for gpr_save pattern [PR95252]
- Verified on rv32emc/rv32gc/rv64gc bare-metal target and rv32gc/rv64gc
   linux target with qemu.

gcc/ChangeLog:

	* config/riscv/predicates.md (gpr_save_operation): New.
	* config/riscv/riscv-protos.h (riscv_gen_gpr_save_insn): New.
	(riscv_gpr_save_operation_p): Ditto.
	* config/riscv/riscv-sr.c (riscv_remove_unneeded_save_restore_calls):
	Ignore USEs for gpr_save patter.
	* config/riscv/riscv.c (gpr_save_reg_order): New.
	(riscv_expand_prologue): Use riscv_gen_gpr_save_insn to gen gpr_save.
	(riscv_gen_gpr_save_insn): New.
	(riscv_gpr_save_operation_p): Ditto.
	* config/riscv/riscv.md (S3_REGNUM): New.
	(S4_REGNUM): Ditto.
	(S5_REGNUM): Ditto.
	(S6_REGNUM): Ditto.
	(S7_REGNUM): Ditto.
	(S8_REGNUM): Ditto.
	(S9_REGNUM): Ditto.
	(S10_REGNUM): Ditto.
	(S11_REGNUM): Ditto.
	(gpr_save): Model USEs correctly.

gcc/testsuite/ChangeLog:

	* gcc.target/riscv/pr95252.c: New.
2020-06-10 19:40:59 -07:00
..
aarch64 aarch64: Fix an ICE in register_tuple_type [PR95523] 2020-06-10 16:58:51 +01:00
alpha
arc
arm
avr
bfin
bpf
cris
csky
epiphany
frv
gcn
h8300
hppa
i386
ia64
m68k
microblaze
mips
msp430
nds32
nios2
nvptx
or1k
powerpc
pru
riscv RISC-V: Describe correct USEs for gpr_save pattern [PR95252] 2020-06-10 19:40:59 -07:00
rl78
rx
s390
sh
sparc
tic6x
vax
visium
x86_64/abi
xstormy16
xtensa