Skip to content

Post inc fixes

Created by: MaryBennett

Added GET_CODE (XEXP (XEXP (op, 0), 1) == REG to ensure no register to immediate normal load/stores.

Files Changed:

  • gcc/config/riscv/corev.md: Tidy up.
  • gcc/config/riscv/riscv-protos.h: Likewise.
  • gcc/config/riscv/predicates.md: Ensure no register to immediate normal load/stores.
  • gcc/config/riscv/riscv.cc: Likewise.
  • gcc/testsuite/gcc.target/riscv/cv-mem-lw-compile-4.c: Added new test to check for illegal corev register to immediate load/ stores.
  • gcc/testsuite/gcc.target/riscv/cv-mem-sw-compile-4.c: Likewise.

Merge request reports

Loading