Index: src/x64/assembler-x64.cc |
diff --git a/src/x64/assembler-x64.cc b/src/x64/assembler-x64.cc |
index 0f40c0808a4a6b496881f81f3f6c636197032e94..24d1c599236498dc84d6527224f42a39a09e155d 100644 |
--- a/src/x64/assembler-x64.cc |
+++ b/src/x64/assembler-x64.cc |
@@ -606,12 +606,9 @@ void Assembler::immediate_arithmetic_op(byte subcode, |
int size) { |
EnsureSpace ensure_space(this); |
emit_rex(dst, size); |
- if (is_int8(src.value_)) { |
+ if (is_int8(src.value_) && RelocInfo::IsNone(src.rmode_)) { |
emit(0x83); |
emit_operand(subcode, dst); |
- if (!RelocInfo::IsNone(src.rmode_)) { |
- RecordRelocInfo(src.rmode_); |
- } |
emit(src.value_); |
} else { |
emit(0x81); |