替换PSHUFB指令
PSHUFB — Packed Shuffle Bytes,按照索引在目标寄存器中进行查表操作:
PSHUFB xmm1, xmm2/m128
Shuffle bytes in xmm1 according to contents ofxmm2/m128.
ARM替换为TBL指令:
TBL Vd.<T>, {Vn*.16B}, Vm.<T>
Table lookup (vector). Where <T> may be 8B or 16B, and Vn* is a list of between one and four consecutively numbered vector registers each holding sixteen 8-bit table elements. The list braces “{ }” are concrete symbols, and do not indicate an optional field as elsewhere in this manual.
父主题: 源码修改类案例