| Index: src/arm/simulator-arm.cc
|
| diff --git a/src/arm/simulator-arm.cc b/src/arm/simulator-arm.cc
|
| index 143b8393629a093048151bfd61e9baf5782598e3..00650576c07c1b567545049929c0fa3d0424040d 100644
|
| --- a/src/arm/simulator-arm.cc
|
| +++ b/src/arm/simulator-arm.cc
|
| @@ -2600,11 +2600,6 @@ void Simulator::DecodeVCMP(Instr* instr) {
|
| 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 @@ void Simulator::DecodeVCMP(Instr* instr) {
|
| 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.
|
|
|