[llvm-branch-commits] [llvm] [RISCV][P-ext] Use nsrl to for 64-bit extract_vector_elt with a variable index on RV32. (PR #241061)

Sam Elliott via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Nov 11 10:52:35 PST 2026


lenary wrote:

> > Sorry, retracting my LGTM.
> > Don't we need to mask after the `nsrl`?
> 
> The upper bits of an extract_element are undefined.

Ok, fair enough, carry on then.

I guess I'll come back and check that e.g. an extract element followed by a narrow operation is masking as we'd hope.

https://github.com/llvm/llvm-project/pull/241061


More information about the llvm-branch-commits mailing list