提交 732c7fa5 编写于 作者: T twisti

7079626: x64 emits unnecessary REX prefix

Reviewed-by: kvn, iveresov, never
上级 eb01dfa1
......@@ -3672,7 +3672,7 @@ void Assembler::prefix(Address adr, Register reg, bool byteinst) {
} else {
if (adr.index_needs_rex()) {
prefix(REX_X);
} else if (reg->encoding() >= 4 ) {
} else if (byteinst && reg->encoding() >= 4 ) {
prefix(REX);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册