[PATCH] D90738: [RISCV] Support Zfh half-precision floating-point extension.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 5 15:30:01 PST 2020


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoZfh.td:273
+// Moves (no conversion)
+def : Pat<(bitconvert GPR:$rs1), (FMV_H_X GPR:$rs1)>;
+def : Pat<(bitconvert FPR16:$rs1), (FMV_X_H FPR16:$rs1)>;
----------------
I don't think these bitconvert patterns make sense. bitconvert must have the same number of bits on both sides. The GPR will be i32 or i64 which will never have the same number of bit as f16.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90738/new/

https://reviews.llvm.org/D90738



More information about the llvm-commits mailing list