[PATCH] D93852: [RISCV] Fill out basic integer RVV ISel patterns

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 28 15:13:46 PST 2020


craig.topper added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/rvv/vrsub-sdnode-rv32.ll:20
+; CHECK-NEXT:    vsetvli a0, zero, e8,mf8,ta,mu
+; CHECK-NEXT:    vrsub.vi v16, v16, -1
+; CHECK-NEXT:    ret
----------------
This constant should probably also change. sub -1, X is equivalent to xor x, -1. InstCombine knows this but I guess SelectionDAG doesn't yet.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D93852



More information about the llvm-commits mailing list