[Libre-soc-bugs] [Bug 550] binutils support needed for svp64

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sun Sep 19 20:33:01 BST 2021


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

--- Comment #9 from lechenko at bsuir.by ---
(In reply to Luke Kenneth Casson Leighton from comment #8)

Slowly but surely, I figured out, what
https://git.libre-soc.org/?p=openpower-isa.git;a=blob;f=src/openpower/sv/trans/svp64.py;h=45b292b4c4c32bbff548f2bf299235633d31db6c;hb=HEAD#l1052
does. 

As I understood, it translates svp64 asm mnemonics to prefix as a 32-bit
literal and subsequent scalar OpenPOWER asm mnemonic. And after that translated
.S-file feeds to binutils to produce binary file.

So, now we want to support the same svp64 asm mnemonics directly in binutils.
But, my guess, that scalar OpenPOWER instructions are already there. Thus, few
questions.

Does it mean, that we can try to implement the same two-step translation logic
inside binutils? Or reuse OpenPOWER-related header files, at least?

Another one about svp64 asm syntax. As far as I understand, it is already
support current version of asm syntax, but is there a spec on it? Could you
share a link, please.

And the last one, for now. I guess, I can reuse/refactor both sv_analysis.py
and svp64.py to generate header for binutils. Was that your intentions on how
to do that task?

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


More information about the libre-soc-bugs mailing list