Index: src/arm/simulator-arm.cc |
=================================================================== |
--- src/arm/simulator-arm.cc (revision 6231) |
+++ src/arm/simulator-arm.cc (working copy) |
@@ -2600,11 +2600,6 @@ |
precision = kDoublePrecision; |
} |
- if (instr->Bit(7) != 0) { |
- // Raising exceptions for quiet NaNs are not supported. |
- UNIMPLEMENTED(); // Not used by V8. |
- } |
- |
int d = instr->VFPDRegCode(precision); |
int m = 0; |
if (instr->Opc2Field() == 0x4) { |
@@ -2618,6 +2613,13 @@ |
dm_value = get_double_from_d_register(m); |
} |
+ // Raise exceptions for quiet NaNs if necessary. |
+ if (instr->Bit(7) == 1) { |
+ if (isnan(dd_value)) { |
+ inv_op_vfp_flag_ = true; |
+ } |
+ } |
+ |
Compute_FPSCR_Flags(dd_value, dm_value); |
} else { |
UNIMPLEMENTED(); // Not used by V8. |