Skip to content

Conversation

@stevenfontanella
Copy link
Member

@stevenfontanella stevenfontanella commented Jan 25, 2026

Literal::add and Literal::mul do the right thing by casting to unsigned before doing arithmetic. From a quick look at Literal.cpp, the remaining arithmetic looks correct.

Also add a unit test for i8x16.avgr_u to demonstrate that it doesn't overflow.

@stevenfontanella stevenfontanella changed the title Try fixing arithmetic ub Fix UB in SIMD dot product arithmetic Jan 25, 2026
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