OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2764 } else if ((instr->Opc1Value() == 0x2) && !(instr->Opc3Value() & 0x1)) { | 2764 } else if ((instr->Opc1Value() == 0x2) && !(instr->Opc3Value() & 0x1)) { |
2765 // vmul | 2765 // vmul |
2766 if (instr->SzValue() != 0x1) { | 2766 if (instr->SzValue() != 0x1) { |
2767 UNREACHABLE(); // Not used by V8. | 2767 UNREACHABLE(); // Not used by V8. |
2768 } | 2768 } |
2769 | 2769 |
2770 double dn_value = get_double_from_d_register(vn); | 2770 double dn_value = get_double_from_d_register(vn); |
2771 double dm_value = get_double_from_d_register(vm); | 2771 double dm_value = get_double_from_d_register(vm); |
2772 double dd_value = dn_value * dm_value; | 2772 double dd_value = dn_value * dm_value; |
2773 set_d_register_from_double(vd, dd_value); | 2773 set_d_register_from_double(vd, dd_value); |
| 2774 } else if ((instr->Opc1Value() == 0x0) && !(instr->Opc3Value() & 0x1)) { |
| 2775 // vmla |
| 2776 if (instr->SzValue() != 0x1) { |
| 2777 UNREACHABLE(); // Not used by V8. |
| 2778 } |
| 2779 |
| 2780 //printf("SIMULATING VMLA!!\n"); |
| 2781 double dd_value = get_double_from_d_register(vd); |
| 2782 double dn_value = get_double_from_d_register(vn); |
| 2783 double dm_value = get_double_from_d_register(vm); |
| 2784 set_d_register_from_double(vd, dd_value + dn_value * dm_value); |
2774 } else if ((instr->Opc1Value() == 0x4) && !(instr->Opc3Value() & 0x1)) { | 2785 } else if ((instr->Opc1Value() == 0x4) && !(instr->Opc3Value() & 0x1)) { |
2775 // vdiv | 2786 // vdiv |
2776 if (instr->SzValue() != 0x1) { | 2787 if (instr->SzValue() != 0x1) { |
2777 UNREACHABLE(); // Not used by V8. | 2788 UNREACHABLE(); // Not used by V8. |
2778 } | 2789 } |
2779 | 2790 |
2780 double dn_value = get_double_from_d_register(vn); | 2791 double dn_value = get_double_from_d_register(vn); |
2781 double dm_value = get_double_from_d_register(vm); | 2792 double dm_value = get_double_from_d_register(vm); |
2782 double dd_value = dn_value / dm_value; | 2793 double dd_value = dn_value / dm_value; |
2783 div_zero_vfp_flag_ = (dm_value == 0); | 2794 div_zero_vfp_flag_ = (dm_value == 0); |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3385 uintptr_t address = *stack_slot; | 3396 uintptr_t address = *stack_slot; |
3386 set_register(sp, current_sp + sizeof(uintptr_t)); | 3397 set_register(sp, current_sp + sizeof(uintptr_t)); |
3387 return address; | 3398 return address; |
3388 } | 3399 } |
3389 | 3400 |
3390 } } // namespace v8::internal | 3401 } } // namespace v8::internal |
3391 | 3402 |
3392 #endif // USE_SIMULATOR | 3403 #endif // USE_SIMULATOR |
3393 | 3404 |
3394 #endif // V8_TARGET_ARCH_ARM | 3405 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |