[PATCH] D116277: [RISCV] Use vmv.s.x to build one element splat vector.

Jianjian Guan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 4 01:12:29 PST 2022


jacquesguan added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/rvv/vreductions-int-rv32.ll:1599
 ; CHECK-NEXT:    vsetivli zero, 1, e64, m1, ta, mu
 ; CHECK-NEXT:    vmv.v.i v12, 0
 ; CHECK-NEXT:    vsetvli a0, zero, e64, m4, ta, mu
----------------
khchen wrote:
> Spec said `If SEW > XLEN, the value is sign-extended to SEW bits.`
> Does it mean we could also use vmv.s.x here?
Done, thanks.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D116277



More information about the llvm-commits mailing list