Bug 921

Summary: pysvp64dis: support instruction aliases
Product: Libre-SOC's first SoC Reporter: Dmitry Selyutin <ghostmansd>
Component: Source CodeAssignee: Dmitry Selyutin <ghostmansd>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: libre-soc-bugs, lkcl, programmerjake
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Linux   
NLnet milestone: NLNet.2019.10.042.Vulkan total budget (EUR) for completion of task and all subtasks: 0
budget (EUR) for this task, excluding subtasks' budget: 0 parent task for budget allocation: 917
child tasks for budget allocation: The table of payments (in EUR) for this task; TOML format:
Bug Depends on:    
Bug Blocks: 917    

Description Dmitry Selyutin 2022-09-01 09:53:31 BST
Some instructions, most notably branches, have different representation depending on the operands. For example, `bc 2, 9, 8` becomes `bdzf 4*cr2+gt,0x8`, thus both the name and the count of operands is changed (if we consider operands to be separated by the comma).
Comment 1 Luke Kenneth Casson Leighton 2022-09-01 10:21:40 BST
this is too much to tackle. the list is not available
anyway in any reasonably accessible form. it would be
days or even weeks to extract the information by literally
reading 1,300 pages of spec and we do not have time unfortunately.
Comment 2 Jacob Lifshay 2022-09-01 10:25:57 BST
(In reply to Luke Kenneth Casson Leighton from comment #1)
> this is too much to tackle. the list is not available
> anyway in any reasonably accessible form.

actually it is, PowerISA v3.1B book 1 appendix c is the list/description of most instruction aliases we'd want to implement.
Comment 3 Luke Kenneth Casson Leighton 2022-09-01 10:38:50 BST
(In reply to Jacob Lifshay from comment #2)
> (In reply to Luke Kenneth Casson Leighton from comment #1)

> actually it is, PowerISA v3.1B book 1 appendix c is the list/description of
> most instruction aliases we'd want to implement.

that's a list, it's not a machine-readable, machine-executable list.
we also have no guarantee that it is complete.