Skip to content

crt saturate add sub#811

Draft
ZERICO2005 wants to merge 2 commits into
CE-Programming:masterfrom
ZERICO2005:crt_saturate_add_sub
Draft

crt saturate add sub#811
ZERICO2005 wants to merge 2 commits into
CE-Programming:masterfrom
ZERICO2005:crt_saturate_add_sub

Conversation

@ZERICO2005

Copy link
Copy Markdown
Contributor

LLVM does not emit these currently.

Adds routines for signed/unsigned add/subtract overflow/saturation (except for 8 bit since calling convention is undefined for that width)

__*(add/sub)u_overflow outputs to NC/C
__*(add/sub)s_overflow outputs to PO/PE
__*(add/sub)u_sat performs unsigned saturation
__*(add/sub)s_overflow performs signed saturation

Some of the overflow routines alias the regular __*add/__*sub routines

@ZERICO2005
ZERICO2005 requested a review from calc84maniac July 9, 2026 18:33
@ZERICO2005

Copy link
Copy Markdown
Contributor Author

ima need to fix some typoes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant