[PATCH] D97698: [RISCV] Support fixed-length INSERT_VECTOR_ELT

Fraser Cormack via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 3 01:57:32 PST 2021


frasercrmck marked 2 inline comments as done.
frasercrmck added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/rvv/fixed-vectors-insert.ll:13
+; RV32-NEXT:    vle64.v v26, (a0)
+; RV32-NEXT:    vsetvli a3, zero, e64,m2,ta,mu
+; RV32-NEXT:    vmv.v.x v28, a2
----------------
craig.topper wrote:
> Should this also be 4 instead of VLMAX?
This one's not fixed by D97842, but that might be a better place to discuss why?


================
Comment at: llvm/test/CodeGen/RISCV/rvv/fixed-vectors-insert.ll:137
+; RV32-NEXT:    vslidedown.vx v8, v28, a2
+; RV32-NEXT:    vsetvli a4, zero, e16,m4,ta,mu
+; RV32-NEXT:    vmv.s.x v8, a1
----------------
craig.topper wrote:
> Looking at this again, should this be using 32 instead of VLMAX?
Yes, sorry about that oversight. D97842 fixes it.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97698



More information about the llvm-commits mailing list