[Libre-soc-bugs] [Bug 1157] Implement poly1305

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Mon Sep 11 17:26:24 BST 2023


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

Luke Kenneth Casson Leighton <lkcl at lkcl.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |konstantinos at vectorcamp.gr

--- Comment #4 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
https://libre-soc.org/irclog/latest.log.html#t2023-09-10T18:44:00

konstantinos was only able to do this *after* i had created the
test_caller_svp64_chacha20.py unit test.

in ISACaller you can pre-load *and extract* all regs in python
which is far far easier.

go *slow*, maximum of 5-8 lines of assembler at a time, and bootstrap
your way up.

then once the snippets are ready in test_caller_xxxx.py you are
ready to move to pypowersim.  you will need to do a *full* function
as a ".s" file just like how konstantinos did it, starting from:

* a POWER v3.0 c function compiled to assembler with gcc -S
* dropping that into the test binary *in place* of the c file
* converting line by line to svp64 assembler, taking the fragments
  from the *python* unit test and dropping them in.

all of this is slow patient and above all *incremental* work that you
can in no way shortcut or attempt to just go "i will do everything from
cold".

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


More information about the libre-soc-bugs mailing list