https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95683
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Kito Cheng <k...@gcc.gnu.org>: https://gcc.gnu.org/g:01b774ff3adcae0e72548f050795c1cf6bf5b8fe commit r10-8445-g01b774ff3adcae0e72548f050795c1cf6bf5b8fe Author: Kito Cheng <kito.ch...@sifive.com> Date: Tue Jun 16 10:14:13 2020 +0800 RISC-V: Fix ICE on riscv_gpr_save_operation_p [PR95683] - riscv_gpr_save_operation_p might try to match parallel on other patterns like inline asm pattern, and then it might trigger ther assertion checking there, so we could trun it into a early exit check. gcc/ChangeLog: PR target/95683 * config/riscv/riscv.c (riscv_gpr_save_operation_p): Remove assertion and turn it into a early exit check. gcc/testsuite/ChangeLog PR target/95683 * gcc.target/riscv/pr95683.c: New. (cherry picked from commit beaf12b49ae030505194cdcac18b5c8533a43921)