x86 浮点指令_x86-64浮点比较指令

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/

Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。

翻译自: https://www.systutorials.com/x86-64-instructions-for-floating-point-comparisons/

x86 浮点指令

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值