Index: src/arm/simulator-arm.cc |
diff --git a/src/arm/simulator-arm.cc b/src/arm/simulator-arm.cc |
index a7fccddc96b63b085d3ad7a228c5ef4ae381b483..8f7c1e8bb2b740e7884c6ae52c6b867681c9e125 100644 |
--- a/src/arm/simulator-arm.cc |
+++ b/src/arm/simulator-arm.cc |
@@ -3470,7 +3470,8 @@ void Simulator::DecodeSpecialCondition(Instruction* instr) { |
if ((instr->Bits(18, 16) == 0) && (instr->Bits(11, 6) == 0x28) && |
(instr->Bit(4) == 1)) { |
// vmovl signed |
- int Vd = (instr->Bit(22) << 4) | instr->VdValue(); |
+ if ((instr->VdValue() & 1) != 0) UNIMPLEMENTED(); |
+ int Vd = (instr->Bit(22) << 3) | (instr->VdValue() >> 1); |
int Vm = (instr->Bit(5) << 4) | instr->VmValue(); |
int imm3 = instr->Bits(21, 19); |
if ((imm3 != 1) && (imm3 != 2) && (imm3 != 4)) UNIMPLEMENTED(); |
@@ -3493,7 +3494,8 @@ void Simulator::DecodeSpecialCondition(Instruction* instr) { |
if ((instr->Bits(18, 16) == 0) && (instr->Bits(11, 6) == 0x28) && |
(instr->Bit(4) == 1)) { |
// vmovl unsigned |
- int Vd = (instr->Bit(22) << 4) | instr->VdValue(); |
+ if ((instr->VdValue() & 1) != 0) UNIMPLEMENTED(); |
+ int Vd = (instr->Bit(22) << 3) | (instr->VdValue() >> 1); |
int Vm = (instr->Bit(5) << 4) | instr->VmValue(); |
int imm3 = instr->Bits(21, 19); |
if ((imm3 != 1) && (imm3 != 2) && (imm3 != 4)) UNIMPLEMENTED(); |