[PATCH] D128898: [LoongArch] Add codegen support for handling floating point immediates
Lu Weining via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 3 18:25:44 PDT 2022
SixWeining added inline comments.
================
Comment at: llvm/lib/Target/LoongArch/LoongArchInstrInfo.td:167-174
+// FP immediate patterns.
+def fpimm0 : PatLeaf<(fpimm), [{return N->isExactlyValue(+0.0);}]>;
+
+def fpimm0neg : PatLeaf<(fpimm), [{return N->isExactlyValue(-0.0);}]>;
+
+def fpimm1 : PatLeaf<(fpimm), [{return N->isExactlyValue(+1.0);}]>;
+
----------------
Suggest to remove useless blank lines and indent.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128898/new/
https://reviews.llvm.org/D128898
More information about the llvm-commits
mailing list