x86 浮点指令
What are the x86-64 instructions for floating-point comparisons like the cmpq
for quard-word integer comparison?
什么是X86-64用于浮点指令点像比较cmpq
为quard字整数比较?
The SSE3 extenstions provide two instructions for comparing floating values:
SSE3扩展提供了两条用于比较浮动值的指令:
Instruction Based on Description
ucomiss S2, S1 S1 - S2 Compare single precision
ucomisd S2, S1 S1 - S2 Compare double precision
As with cmpq, they follow the GAS convention of listing the operands in reverse order. Argument S2 must be in an XMM register, while S1 can either be in an XMM register or in memory.
与cmpq一样,它们遵循GAS约定以相反的顺序列出操作数。 参数S2必须在XMM寄存器中,而S1可以在XMM寄存器中或在存储器中 。
Reference: https://www.cs.cmu.edu/~fp/courses/15213-s07/misc/asm64-handout.pdf
参考: https : //www.cs.cmu.edu/~fp/courses/15213-s07/misc/asm64-handout.pdf
Check more: https://www.systutorials.com/3024/x86-64-isa-assembly-references/
检查更多: https : //www.systutorials.com/3024/x86-64-isa-assembly-references/
翻译自: https://www.systutorials.com/x86-64-instructions-for-floating-point-comparisons/
x86 浮点指令