[PATCH] D106518: [RISCV] Disable EEW=64 for index values when XLEN=32.
Jianjian Guan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 7 00:19:45 PST 2022
jacquesguan added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:5475
+ if (IndexVT.getVectorElementType() == MVT::i64 && XLenVT == MVT::i32) {
+ report_fatal_error("The V extension does not support EEW=64 for index "
----------------
craig.topper wrote:
> Can we truncate the index to nvxXi32 instead of erroring? Would that allow us to preserve more test cases?
Done, thanks.
================
Comment at: llvm/test/CodeGen/RISCV/rvv/fixed-vectors-masked-gather.ll:1033
-define <8 x i64> @mgather_baseidx_sext_v8i8_v8i64(i64* %base, <8 x i8> %idxs, <8 x i1> %m, <8 x i64> %passthru) {
-; RV32-LABEL: mgather_baseidx_sext_v8i8_v8i64:
----------------
craig.topper wrote:
> Can these test cases be preserved in an rv64 only test?
Done, thanks.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106518/new/
https://reviews.llvm.org/D106518
More information about the cfe-commits
mailing list