Index: src/ia32/assembler-ia32.cc |
=================================================================== |
--- src/ia32/assembler-ia32.cc (revision 5165) |
+++ src/ia32/assembler-ia32.cc (working copy) |
@@ -1141,6 +1141,21 @@ |
} |
+void Assembler::rcr(Register dst, uint8_t imm8) { |
+ EnsureSpace ensure_space(this); |
+ last_pc_ = pc_; |
+ ASSERT(is_uint5(imm8)); // illegal shift count |
+ if (imm8 == 1) { |
+ EMIT(0xD1); |
+ EMIT(0xD8 | dst.code()); |
+ } else { |
+ EMIT(0xC1); |
+ EMIT(0xD8 | dst.code()); |
+ EMIT(imm8); |
+ } |
+} |
+ |
+ |
void Assembler::sar(Register dst, uint8_t imm8) { |
EnsureSpace ensure_space(this); |
last_pc_ = pc_; |