计算机系统的第3章程序员的观点(第2版)提到了 cltq相当于movslq %eax, %rax.
cltq
movslq %eax, %rax
为什么他们创建一个新的指令(cltq)而不是仅使用movslq %eax,%rax?这不是多余的吗?
movslq %eax,%rax
x86 assembly x86-64 instruction-set att
assembly ×1
att ×1
instruction-set ×1
x86 ×1
x86-64 ×1