Skip to content

Rvy093 shadd#293

Merged
arichardson merged 5 commits intoCTSRD-CHERI:devfrom
arichardson:rvy093-shadd
Nov 7, 2025
Merged

Rvy093 shadd#293
arichardson merged 5 commits intoCTSRD-CHERI:devfrom
arichardson:rvy093-shadd

Conversation

@arichardson
Copy link
Member

To be merged after #292

buxtonpaul and others added 3 commits November 2, 2025 17:12
For standard versions up to 0.9.5 we replaced the existing shadd
instructions, in 0.9.6 we add new encodings instead.

Co-authored-by: Alexander Richardson <alexrichardson@google.com>
These instructions follow the SHXAdd instructions the difference is that
we only take the bottom word of rs1 and zero extend.
For standard versions up to 0.9.5 we replaced the existing shadd
instructions, in 0.9.6 we add new encodings instead.

Co-authored-by: Alexander Richardson <alexrichardson@google.com>
Part of the Zba extension this implements the add.uw instruction.
This was removed in version 0.9.6 of the CHERI spec since we found no
uses of this instruction in real-world code.

Co-authored-by: Alexander Richardson <alexrichardson@google.com>
@arichardson arichardson force-pushed the rvy093-shadd branch 3 times, most recently from 2650e89 to 8a242f0 Compare November 7, 2025 19:25
buxtonpaul and others added 2 commits November 7, 2025 11:36
This was removed in 0.9.6 so is guarded by TARGET_CHERI_RISCV_STD_093
These are mode-dependent in 0.9.5 and older, and always capability-based
sh4addy(.uw) in 0.9.6.
This depends on zish4add extension that was removed in 0.9.6, so is
guarded by 0.9.3 #ifdefs.

Co-authored-by: Paul Buxton <paul.buxton@codasip.com>
@arichardson arichardson merged commit ad993eb into CTSRD-CHERI:dev Nov 7, 2025
50 of 51 checks passed
@arichardson arichardson deleted the rvy093-shadd branch November 7, 2025 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants