Bug 1215

Summary: sv.bc needs to loop on scalar BI
Product: Libre-SOC's first SoC Reporter: Luke Kenneth Casson Leighton <lkcl>
Component: SpecificationAssignee: Luke Kenneth Casson Leighton <lkcl>
Status: RESOLVED FIXED    
Severity: enhancement CC: libre-soc-isa, shriya.sharma
Priority: ---    
Version: unspecified   
Hardware: Other   
OS: Linux   
URL: https://libre-soc.org/openpower/sv/branches/
See Also: https://bugs.libre-soc.org/show_bug.cgi?id=676
https://bugs.libre-soc.org/show_bug.cgi?id=1183
https://bugs.libre-soc.org/show_bug.cgi?id=664
NLnet milestone: --- 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:
child tasks for budget allocation: The table of payments (in EUR) for this task; TOML format:

Description Luke Kenneth Casson Leighton 2023-11-27 08:43:15 GMT
just as with sv.cmpi/ff and in the maxloc example there
is a need to loop on scalar in sv.bc*

in this case however it should have been looping anyway
because BI is a *source* not a destination.

this is the mistake:

https://git.libre-soc.org/?p=openpower-isa.git;a=blob;f=src/openpower/decoder/isa/caller.py;h=07aa8bb0b8c2f70bcd623351198c1366242917ba;hb=HEAD#l2247

* DONE: fixed mistake
* TODO: branches page
Comment 1 Luke Kenneth Casson Leighton 2023-11-27 09:46:05 GMT
TODO: note in the spec that BI is a source. do a quick Programmer Note
to say "if single needed use 1<<r3 predicate mask or other single-bit mask"
Comment 2 Luke Kenneth Casson Leighton 2023-11-27 14:06:51 GMT
commit 2eb5abb845808c436797f3a5449f847fefdacca8 (origin/master, origin/HEAD, master)
Author: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
Date:   Mon Nov 27 10:08:43 2023 +0000

    got sv.bc working for pospopcount
Comment 3 Luke Kenneth Casson Leighton 2023-11-27 14:19:11 GMT
added note on sv.bc use of 1<<r3 recommended for single-scalar test
https://git.libre-soc.org/?p=libreriscv.git;a=commitdiff;h=739d73fb4a