| Summary: | possible precedence error in divw XLEN | ||
|---|---|---|---|
| Product: | Libre-SOC's first SoC | Reporter: | Luke Kenneth Casson Leighton <lkcl> |
| Component: | Source Code | Assignee: | Luke Kenneth Casson Leighton <lkcl> |
| Status: | CONFIRMED --- | ||
| Severity: | enhancement | CC: | ghostmansd, libre-soc-bugs |
| Priority: | --- | ||
| Version: | unspecified | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| 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: | ||
| Bug Depends on: | |||
| Bug Blocks: | 671 | ||
|
Description
Luke Kenneth Casson Leighton
2021-09-03 08:43:19 BST
concat(1, repeat=XLEN) // 2) | eq(divisor, concat(0, repeat=XLEN) // 2): yes, it's definitely producing concat(1, repeat=XLEN)/2 rather than the correct concat(1, repeat=XLEN/2) commit 907452d23734f8cc4bd65b87a8019a912d19cacd (HEAD -> master) Author: Luke Kenneth Casson Leighton <lkcl@lkcl.net> Date: Fri Sep 3 08:49:13 2021 +0100 use brackets round (XLEN/2) in divw pseudocode [0]*XLEN/2 was being interpreted as ([0]*XLEN)/2 |