[RISCV] Fix Zfa fceil/ffloor codegen bugs
authorJun Sha (Joshua) <cooper.joshua@linux.alibaba.com>
Fri, 31 Mar 2023 19:15:05 +0000 (12:15 -0700)
committerCraig Topper <craig.topper@sifive.com>
Fri, 31 Mar 2023 19:19:02 +0000 (12:19 -0700)
commit4bbbae61d3f13fa21425aee76d26f4d8d8cbc67f
tree4f85a04823bc48d89b7ae321dce785cfe2c88531
parenta1786a7224d067ca1a7ccbd721e3dec7f10266dd
[RISCV] Fix Zfa fceil/ffloor codegen bugs

D143982 confused ceil and floor. Ceil should use fround instructions with 'rup' and floor should use 'rdn'.

Differential Revision: https://reviews.llvm.org/D146516
llvm/lib/Target/RISCV/RISCVInstrInfoZfa.td
llvm/test/CodeGen/RISCV/double-zfa.ll
llvm/test/CodeGen/RISCV/float-zfa.ll
llvm/test/CodeGen/RISCV/half-zfa.ll