There are complications, of course. The matrix outputs 37 bits, not 32, for reasons. Supporting bytes and 16-bit shifts needs more circuitry as does rotating through the carry. For more on the 386's barrel shifter, see my blog post: https://www.righto.com/2023/12/386-barrel-shifter.html 10/11
My previous 386 thread: https://oldbytes.space/@kenshirriff/111500546058567984 11/11