[PATCH] D78908: [RISCV] Add patterns for checking isnan
Sam Elliott via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 30 02:44:26 PDT 2020
lenary marked an inline comment as done.
lenary added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoD.td:316
1)>;
+def : Pat<(setuo FPR64:$rs1, FPR64:$rs1),
+ (SLTIU (FEQ_D $rs1, $rs1), 1)>;
----------------
asb wrote:
> I think this pattern and the matching one in RISCVInstrInfoF.td is left untested?
This pattern is what is tested by `fcmp uno {float,double} %0, 0.000000e+00`. The `sltiu` is shown in the assembly output as `seqz`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78908/new/
https://reviews.llvm.org/D78908
More information about the llvm-commits
mailing list