[PATCH] D100803: [RISCV] Enable SPLAT_VECTOR for fixed vXi64 types on RV32.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 19 16:08:17 PDT 2021


craig.topper added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-vrgather.ll:56
 define void @gather_const_v2i64(<2 x i64>* %x) {
-; CHECK-LABEL: gather_const_v2i64:
-; CHECK:       # %bb.0:
-; CHECK-NEXT:    vsetivli a1, 2, e64,m1,ta,mu
-; CHECK-NEXT:    vle64.v v25, (a0)
-; CHECK-NEXT:    vrgather.vi v26, v25, 1
-; CHECK-NEXT:    vse64.v v26, (a0)
-; CHECK-NEXT:    ret
+; LMULMAX4-RV32-LABEL: gather_const_v2i64:
+; LMULMAX4-RV32:       # %bb.0:
----------------
This is caused by SPLAT_VECTOR being formed before splat VECTOR_SHUFFLE as noted in the description.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100803



More information about the llvm-commits mailing list