Bug 1064 - Change XLEN-ification
Summary: Change XLEN-ification
Alias: None
Product: Libre-SOC's first SoC
Classification: Unclassified
Component: Specification (show other bugs)
Version: unspecified
Hardware: PC Linux
: --- enhancement
Assignee: Jacob Lifshay
Depends on:
Reported: 2023-04-20 02:17 BST by Jacob Lifshay
Modified: 2024-03-10 07:02 GMT (History)
2 users (show)

See Also:
NLnet milestone: NLnet.2022-08-107.ongoing
total budget (EUR) for completion of task and all subtasks: 1000
budget (EUR) for this task, excluding subtasks' budget: 1000
parent task for budget allocation: 1027
child tasks for budget allocation:
The table of payments (in EUR) for this task; TOML format:
[jacob] amount = 1000 submitted = 2024-02-26 paid = 2024-03-08


Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Lifshay 2023-04-20 02:17:33 BST
I looked and found some more instructions that I think need to change how they're XLEN-ified:

I put the changes in the change-xlenification-bug-1064 branch:

Comment 1 Jacob Lifshay 2023-04-20 02:20:08 BST
I found them by searching in openpower-isa/openpower/isa for:

basically searching for all powers of 2 and one less from 7 to 64 but ignoring OV32/CA32
Comment 2 Luke Kenneth Casson Leighton 2023-04-20 04:23:54 BST
(In reply to Jacob Lifshay from comment #0)
> I looked and found some more instructions that I think need to change how
> they're XLEN-ified:

yep doesn't surprise me.

btw there's no "see also" bugreports - i only encountered a couple
months old by accident on a keyword search.  please please for goodness
sake do the search straight away on creating a bug and add "see also"
and any other cross-referencing.
Comment 3 Jacob Lifshay 2023-04-21 04:29:21 BST
On branch change-xlenification-bug-1064

commit b94b04d748729ea8cce3c61e527ced9d3835cff9
Author: Jacob Lifshay <programmerjake@gmail.com>
Date:   Thu Apr 20 20:23:48 2023 -0700

    rename/convert/merge XLCASTU/XLCASTS to EXTZXL/EXTSXL

commit a4b43d331d625b4d22dd4b718072259cdfc6f4aa
Author: Jacob Lifshay <programmerjake@gmail.com>
Date:   Thu Apr 20 20:15:48 2023 -0700

    rewrite all uses of XLCASTU/XLCASTS

commit 2994f4876dacca8c81b79f3b45adbd46cc56b3cf
Author: Jacob Lifshay <programmerjake@gmail.com>
Date:   Thu Apr 20 20:13:57 2023 -0700

    add EXTZ since it's in PowerISA v3.1B (see lbz for an example)
Comment 4 Jacob Lifshay 2023-04-21 20:29:05 BST
merged to master. iirc that's all that needs to be changed since we use openpower-isa.git as our only pseudo-code reference for existing PowerISA insns, if there's something I forgot, feel free to re-open.