Undefined behaviour is just passed on to extract_element when the
index is out of bounds. Subscript on svbool_t is not allowed as
it isn't an operation natively supported in the ISA.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Subscript on svbool_t is not allowed as this doesn't really have meaningful semantics.
Not sure what you mean by this; LLVM supports extractelement on <vscale x 16 x i1> vectors. I guess the fact that it's a "vscale x 16" element vector might not be intuitive?
Comment Actions
Not sure what you mean by this; LLVM supports extractelement on <vscale x 16 x i1> vectors. I guess the fact that it's a "vscale x 16" element vector might not be intuitive?
It's a native operation at the LLVM level but not at the ISA level, unlike the data registers. Code quality would be quite poor if we just allowed it naively so I thought it better to disallow it to not give the impression it's easy/free. I will update the text in the commit message to make this more clear.