RISC-V: Emit better warning for unknown CSR.
authorJim Wilson <jimw@sifive.com>
Fri, 16 Mar 2018 17:03:57 +0000 (10:03 -0700)
committerJim Wilson <jimw@sifive.com>
Fri, 16 Mar 2018 17:03:57 +0000 (10:03 -0700)
commitca2fd32c5508ff1b68781ba5b82e6cdbf9ca100a
tree09035890c27d97b43afa9a826ec608ac7d8ed30e
parent03afa6ef8ac9e5acfa68b1005aec6756eaa1d093
RISC-V: Emit better warning for unknown CSR.

gas/
* config/tc-riscv.c (check_absolute_expr): Expand comment.  New
parameter maybe_csr.  If maybe_csr and O_symbol, print CSR name.
(riscv_ip): Add new argument to check_absolute_expr calls.
* testsuite/gas/riscv/bad-csr.d: New.
* testsuite/gas/riscv/bad-csr.l: New.
* testsuite/gas/riscv/bad-csr.s: New.
gas/ChangeLog
gas/config/tc-riscv.c
gas/testsuite/gas/riscv/bad-csr.d [new file with mode: 0644]
gas/testsuite/gas/riscv/bad-csr.l [new file with mode: 0644]
gas/testsuite/gas/riscv/bad-csr.s [new file with mode: 0644]