Skip to content

Conversation

@xalbertoisorna
Copy link

@xalbertoisorna xalbertoisorna commented Dec 17, 2025

Adds the correct right shift for vlmul in vpu_sim.c in different vpu modes for vx4a other than s16 (s8, s32).

It could be implemented directly with macros, but since it will end up as an if statement at the architecture level anyway, it feels more natural to use a switch and compute each case explicitly.

I’m happy to replace the function with macros or an alternative approach if preferred; my main goal here is to ensure correct VPU rounding and saturation for all modes so I have a vpu sim to test against.

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.

1 participant