Issue 79196
Summary [RISCV] What index should we use for vrgather.vv for shufflevector with undef index.
Labels backend:RISC-V
Assignees
Reporter topperc
    If we receive a vector shuffle with undef indices, we need to pick an index for the vrgather. Ideally for each DLEN of the destination we want the elements to come from as few DLENs of the source vector as possible.

Without -mrvv-vector-bits we don't know where the DLEN boundaries are so won't know what elements to consider.

If the index type is large enough, we could use a value like -1U if it is larger than the worst case VLMAX. According to the vector specification, indices larger than VLMAX should return 0 rather than element from the source.

CC: @preames @frasercrmck @lukel97 @rofirrim 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to