[Libre-soc-isa] [Bug 794] SVP64 REMAP for utf8
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Tue Aug 23 10:28:37 BST 2022
https://bugs.libre-soc.org/show_bug.cgi?id=794
Jacob Lifshay <programmerjake at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|CONFIRMED |IN_PROGRESS
Assignee|lkcl at lkcl.net |programmerjake at gmail.com
--- Comment #15 from Jacob Lifshay <programmerjake at gmail.com> ---
I have a different strategy that I think will work well, I started adding it as
a test case in openpower-isa.git, but ran out of time today because I started
writing a super simple svp64 emulator since I thought I'd need elwidth
overrides (which iirc the simulator doesn't yet support), but turns out I don't
so I converted it to a TestAccumulatorBase test case.
basic idea:
load current chunk of bytes to regs 64-95, expanding to 1 byte per register,
zero pad (because nul is always a 1-byte utf-8 char) to 32 regs. put previous
iteration's chunk in regs 32-63.
now match the regs against the valid utf-8 patterns (see comment #6), accessing
previous bytes by using regs 63-94, 62-93, 61-92, etc.
https://git.libre-soc.org/?p=openpower-isa.git;a=commitdiff;h=f640d6b5c0ca5ae72d70cdaa95cda4f7e68e7e60
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Libre-SOC-ISA
mailing list