[Libre-soc-bugs] [Bug 897] de-spacer demo algorithm

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sun Jul 31 00:01:42 BST 2022


https://bugs.libre-soc.org/show_bug.cgi?id=897

--- Comment #1 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
this one should be possible to do with three sv.cmpi's for each character
(space, backslash, newline) followed by a crweird ORing them all together
into an INT, which is then popcnt'd to find the number of bits actually
copied using a VCOMPRESS mv (or ST).

another way might be to use sv.bc CTR mode which should automatically
decrement CTR by the number of bits in the predicate, saving on a popcnt.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list