x86 BSF/BSR 的实现不正确
作者: ashduino101创建于 2026年8月13日更新于 2026年9月28日
标签Type: BugFeature: Processor/x86Status: Internal
描述错误 x86 指令 BSF 和 BSR 的当前实现是不正确的。英特尔手册中指出:“如果源操作数的内容为零,目标操作数不变。”(Vol. 2A 3-107) 然而,当前实现根据源大小将目标操作数设置为最高位(15、31 或 63)。
内容来源: NationalSecurityAgency/ghidra