]> granicus.if.org Git - llvm/commit
[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)
commitd9f176f3a8f43938630ff4186ac34bef7d055ce6
treec23b32581f989f9bb2bce4a8c20cadf47076b532
parent3441a8988af8a6c045ed62490237173208ed136b
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355753 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/RISCVSystemOperands.td
test/MC/RISCV/csr-aliases.s
test/MC/RISCV/rv32i-valid.s
test/MC/RISCV/rvf-user-csr-names.s
test/MC/RISCV/user-csr-names-invalid.s