[llvm] RISC-V: Select FCANONICALIZE (PR #112083)
YunQiang Su via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 13 23:12:31 PDT 2024
================
@@ -398,6 +398,7 @@ foreach Ext = DExts in {
defm : PatFprFpr_m<fmaximumnum, FMAX_D, Ext>;
defm : PatFprFpr_m<riscv_fmin, FMIN_D, Ext>;
defm : PatFprFpr_m<riscv_fmax, FMAX_D, Ext>;
+ def : Pat<(f64 (fcanonicalize FPR64:$rs1)), (FMIN_D $rs1, $rs1)>;
----------------
wzssyqa wrote:
Yes. So I left a `; FIXME: @llvm.canonicalize doesn't support soft-float abi yet.` in
`llvm/test/CodeGen/RISCV/fp-fcanonicalize.ll`.
I will try to implement it in future.
https://github.com/llvm/llvm-project/pull/112083
More information about the llvm-commits
mailing list