[RISCV] Allow access to FP CSRs without F extension
authorAna Pazos <apazos@quicinc.com>
Fri, 8 Mar 2019 23:01:08 +0000 (23:01 +0000)
committerAna Pazos <apazos@quicinc.com>
Fri, 8 Mar 2019 23:01:08 +0000 (23:01 +0000)
commit5254d1baae63dc2db6b991996ce1e8313027da6c
tree5e229d1b981fcf4e350a07d9e0af244cfb4434e8
parent6e4ec6022f7936b88b42a30f6d64a787609284a9
[RISCV] Allow access to FP CSRs without F extension

Summary:
Floating-point CSRs should be accessible even when F extension is not enabled.
But pseudo instructions that access floating point CSRs still require the F extension.
GNU tools already implement this behavior. RISC-V spec is pending update to reflect
this behavior and to extend it to pseudo instructions that access floating point CSRs.

Reviewers: asb

Reviewed By: asb

Subscribers: asb, rbar, johnrusso, simoncook, sabuasal, niosHD, kito-cheng, shiva0217, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, llvm-commits

Differential Revision: https://reviews.llvm.org/D58932

llvm-svn: 355753
llvm/lib/Target/RISCV/RISCVSystemOperands.td
llvm/test/MC/RISCV/csr-aliases.s
llvm/test/MC/RISCV/rv32i-valid.s
llvm/test/MC/RISCV/rvf-user-csr-names.s
llvm/test/MC/RISCV/user-csr-names-invalid.s