Hi,
我看到一条汇编指令:MPYLIR,手册上的说明如下:
Performs a 16-bit by 32-bit multiply. The lower half of src1 is treated as a signed 16-bit input. The value in src2 is treated as a signed 32-bit value. The product is then rounded into a 32-bit result by adding the value 2^14 and then this sum is right shifted by 15. The lower 32 bits of the result are written into dst.
其运算过程我大致明白了,我的问题是何时需要用这条指令。有人能告诉我使用这条指令的场合是什么样的吗?