RISC-V: Change sp subtracts so prologue stores can compress.
authorJim Wilson <jimw@sifive.com>
Thu, 15 Feb 2018 01:14:23 +0000 (01:14 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 15 Feb 2018 01:14:23 +0000 (17:14 -0800)
commit10789329789fbb5b87883fca029e745a06ded6a0
treeb5e6fe7f7bfd30e38823a79d94d8b8b50f921d6c
parent1622ba9cefbc2f3e21e42ed336700dd788f11c5c
RISC-V: Change sp subtracts so prologue stores can compress.

gcc/
* config/riscv/riscv.c (riscv_first_stack_step): Move locals after
first SMALL_OPERAND check.  New local min_second_step.  Move assert
to where locals are set.  Add TARGET_RVC support.
* config/riscv/riscv.h (C_SxSP_BITS, SWSP_REACH, SDSP_REACH): New.

From-SVN: r257681
gcc/ChangeLog
gcc/config/riscv/riscv.c
gcc/config/riscv/riscv.h