gpt4 book ai didi

assembly - 为什么这个 PowerPC 指令序列似乎同时设置了 cr0 和 cr1?

转载 作者:行者123 更新时间:2023-12-04 14:45:54 24 4
gpt4 key购买 nike

在大端 POWER7 上执行以下一组 PowerPC 指令时,为什么寄存器 r6 == 0b10001000000000000000000000000000000000000000000000000000000000000000000000000

是否有来自cmpd 的隐式条件测试?

li r3, 420
li r4, 360
cmpd r3, r4
mfocrf r6, 0x80

最佳答案

我应该仔细阅读。

来自 Power ISA V2.07B:

The POWER4, POWER5, POWER7 and POWER8processors set to 0's all bytes of register RT otherthan the byte that contains the specified CR field. Inthe byte that contains the CR field, bits other thanthose containing the CR field may or may not beset to 0s.

所以这种行为在我使用的机器上是预期的。

关于assembly - 为什么这个 PowerPC 指令序列似乎同时设置了 cr0 和 cr1?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70073224/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com