[PATCH] D123796: [RISCV] Don't emit fractional VIDs with negative steps
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 18 13:24:32 PDT 2022
craig.topper added inline comments.
================
Comment at: llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-buildvec.ll:642
-; CHECK-NEXT: vid.v v8
-; CHECK-NEXT: vsrl.vi v8, v8, 2
-; CHECK-NEXT: vrsub.vi v8, v8, -5
----------------
This code seemed to do the right thing if I did the math correctly
-5 - (vid / 4)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123796/new/
https://reviews.llvm.org/D123796
More information about the llvm-commits
mailing list