-
- Downloads
"git@gitlab.cobolworx.com:COBOLworx/gcc-cobol.git" did not exist on "56a4e074ee8bcf4c3627fb595c31bd833d5a6532"
RISC-V: Enable compressible features when use ZC* extensions.
This patch enables the compressible features with ZC* extensions. Since all ZC* extension depends on the Zca extension, it's sufficient to only add the target Zca to extend the target RVC. Co-Authored by: Mary Bennett <mary.bennett@embecosm.com> Co-Authored by: Nandni Jamnadas <nandni.jamnadas@embecosm.com> Co-Authored by: Simon Cook <simon.cook@embecosm.com> gcc/ChangeLog: * config/riscv/riscv-c.cc (riscv_cpu_cpp_builtins): Enable compressed builtins when ZC* extensions enabled. * config/riscv/riscv-shorten-memrefs.cc: Enable shorten_memrefs pass when ZC* extensions enabled. * config/riscv/riscv.cc (riscv_compressed_reg_p): Enable compressible registers when ZC* extensions enabled. (riscv_rtx_costs): Allow adjusting rtx costs when ZC* extensions enabled. (riscv_address_cost): Allow adjusting address cost when ZC* extensions enabled. (riscv_first_stack_step): Allow compression of the register saves without adding extra instructions. * config/riscv/riscv.h (FUNCTION_BOUNDARY): Adjusts function boundary to 16 bits when ZC* extensions enabled.
Showing
- gcc/config/riscv/riscv-c.cc 1 addition, 1 deletiongcc/config/riscv/riscv-c.cc
- gcc/config/riscv/riscv-shorten-memrefs.cc 2 additions, 1 deletiongcc/config/riscv/riscv-shorten-memrefs.cc
- gcc/config/riscv/riscv.cc 7 additions, 4 deletionsgcc/config/riscv/riscv.cc
- gcc/config/riscv/riscv.h 1 addition, 1 deletiongcc/config/riscv/riscv.h
Loading
Please register or sign in to comment