RFD: RISC-V vectorized libfuncs

Joern Rennecke joern.rennecke@embecosm.com
Wed Jul 19 12:39:12 GMT 2023


I think it would make sense to leave the exact vector layout, like
vlen and lmul, to the caller.
Attached is an attempt to implement sin and cos vectorized so it
allows lmul values of m1 and m2, while using no more than a quarter of
the vector registers.
The function could live in libgcc and be used via a special pattern in
the machine description that
shows the exact list of clobbers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sin.S
Type: application/octet-stream
Size: 3518 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20230719/57a955cd/attachment.obj>


More information about the Gcc mailing list