Open
Description
The normal SIMD standard is likely too far along but I'd like for people to consider the option of including a vector length parameter with the SIMD arguments. This would eliminate the need to add op-codes for 128, 256, and 512 bit vectors. Non-standard sized vector lengths could be emulated efficiently in the interpreter itself.
Example:
SIMD.ADD 5:
- Pop 5 values off the stack for vector 1
- Pop 5 values off the stack for vector 2
- Add the vectors
- Push the 5 value result onto the stack