No SIMD addition instructions in ReleaseSmall mode

Right, my bad. After correcting this, the vpadd disappeared.
In any case, I removed a bunch of stuff from the code to make it easier to understand the generated assembly, and now I’m getting the vpadd: godbolt.
Taking a look at the original code, I believe that, since the arguments for printing need to be passed on the stack, the compiler did the addition directly on the stack. This replaces the vector add with either a scalar add or a lea, which are smaller. Once I removed the call, the compiler again used a vector add.

2 Likes