Re the qpel bugs: In the V_STORE macro in qpel_mmx.asm, try changing movd rax, %3 mov [rdi], rax to movd eax, %3 mov [rsi], eax This fixed problems I was having, but I'm doing a windows port so it might not be the same.