Index: src/arm/macro-assembler-arm.cc |
=================================================================== |
--- src/arm/macro-assembler-arm.cc (revision 12603) |
+++ src/arm/macro-assembler-arm.cc (working copy) |
@@ -789,6 +789,7 @@ |
void MacroAssembler::Vmov(const DwVfpRegister dst, |
const double imm, |
+ const Register scratch, |
const Condition cond) { |
ASSERT(CpuFeatures::IsEnabled(VFP2)); |
static const DoubleRepresentation minus_zero(-0.0); |
@@ -800,11 +801,10 @@ |
} else if (value.bits == minus_zero.bits) { |
vneg(dst, kDoubleRegZero, cond); |
} else { |
- vmov(dst, imm, cond); |
+ vmov(dst, imm, scratch, cond); |
} |
} |
- |
void MacroAssembler::EnterFrame(StackFrame::Type type) { |
// r0-r3: preserved |
stm(db_w, sp, cp.bit() | fp.bit() | lr.bit()); |
@@ -3676,7 +3676,7 @@ |
// Double value is >= 255, return 255. |
bind(&above_zero); |
- Vmov(temp_double_reg, 255.0); |
+ Vmov(temp_double_reg, 255.0, result_reg); |
VFPCompareAndSetFlags(input_reg, temp_double_reg); |
b(le, &in_bounds); |
mov(result_reg, Operand(255)); |