<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>>> In this case, x264asm don't do it because HAVE_ALIGNED_STACK=1<br>>> the input stack is aligned, but we need push 3 regs into stack, so we got a<br>>> stack mistake.<br>><br>>Again, that's not how it works.<br>><br>>HAVE_ALIGNED_STACK means x264asm can assume the input stack is aligned.<br>><br>>It does not mean x264asm magically stops handling stack alignment.<br>><br>>HAVE_ALIGNED_STACK exists to compensate for compilers such as Intel's<br>>that don't perform stack alignment.  It has _absolutely nothing_ to do<br>>with x264asm's own pushing registers onto the stack.<br><br>Sorry, my mistake.</div>
<div>Latest version x264asm solve this bug, we x265 use old one, there have a condition '%if mmsize <= 16 && HAVE_ALIGNED_STACK'</div>
<div> </div></div>