RISC-V: Fix rtl checking enabled failure with -msave-restore.
authorJim Wilson <jimw@sifive.com>
Tue, 21 Jan 2020 23:20:19 +0000 (15:20 -0800)
committerJim Wilson <jimw@sifive.com>
Tue, 21 Jan 2020 23:20:19 +0000 (15:20 -0800)
commit0501b74264e93bf9ebf45cf10a624a549dc474f1
tree0ce8c232f5093703cc0e4179266fea5bd77aca46
parent95a5c0336e18f84bfe0f6be6a2e1c63e733e91c1
RISC-V: Fix rtl checking enabled failure with -msave-restore.

Found with an rtl checking enabled build and check.  This triggered failures
in the gcc.target/riscv/save-restore* tests.  We are using XINT to access an
XWINT value; INTVAL is the preferred solution.

gcc/
* config/riscv/riscv-sr.c (riscv_sr_match_prologue): Use INTVAL
instead of XINT.
gcc/ChangeLog
gcc/config/riscv/riscv-sr.c