OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_ASSEMBLER_MIPS_H_ | 5 #ifndef VM_ASSEMBLER_MIPS_H_ |
6 #define VM_ASSEMBLER_MIPS_H_ | 6 #define VM_ASSEMBLER_MIPS_H_ |
7 | 7 |
8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
9 #error Do not include assembler_mips.h directly; use assembler.h instead. | 9 #error Do not include assembler_mips.h directly; use assembler.h instead. |
10 #endif | 10 #endif |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 EmitFpuRType(COP1, FMT_W, F0, fs, fd, COP1_CVT_D); | 454 EmitFpuRType(COP1, FMT_W, F0, fs, fd, COP1_CVT_D); |
455 } | 455 } |
456 | 456 |
457 // Converts a 64-bit signed int in fs to a double in fd. | 457 // Converts a 64-bit signed int in fs to a double in fd. |
458 void cvtdl(DRegister dd, DRegister ds) { | 458 void cvtdl(DRegister dd, DRegister ds) { |
459 FRegister fs = static_cast<FRegister>(ds * 2); | 459 FRegister fs = static_cast<FRegister>(ds * 2); |
460 FRegister fd = static_cast<FRegister>(dd * 2); | 460 FRegister fd = static_cast<FRegister>(dd * 2); |
461 EmitFpuRType(COP1, FMT_L, F0, fs, fd, COP1_CVT_D); | 461 EmitFpuRType(COP1, FMT_L, F0, fs, fd, COP1_CVT_D); |
462 } | 462 } |
463 | 463 |
| 464 void cvtsd(FRegister fd, DRegister ds) { |
| 465 FRegister fs = static_cast<FRegister>(ds * 2); |
| 466 EmitFpuRType(COP1, FMT_D, F0, fs, fd, COP1_CVT_S); |
| 467 } |
| 468 |
464 void cvtwd(FRegister fd, DRegister ds) { | 469 void cvtwd(FRegister fd, DRegister ds) { |
465 FRegister fs = static_cast<FRegister>(ds * 2); | 470 FRegister fs = static_cast<FRegister>(ds * 2); |
466 EmitFpuRType(COP1, FMT_D, F0, fs, fd, COP1_CVT_W); | 471 EmitFpuRType(COP1, FMT_D, F0, fs, fd, COP1_CVT_W); |
467 } | 472 } |
468 | 473 |
469 void div(Register rs, Register rt) { | 474 void div(Register rs, Register rt) { |
470 EmitRType(SPECIAL, rs, rt, R0, 0, DIV); | 475 EmitRType(SPECIAL, rs, rt, R0, 0, DIV); |
471 } | 476 } |
472 | 477 |
473 void divd(DRegister dd, DRegister ds, DRegister dt) { | 478 void divd(DRegister dd, DRegister ds, DRegister dt) { |
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1219 Register value, | 1224 Register value, |
1220 Label* no_update); | 1225 Label* no_update); |
1221 | 1226 |
1222 DISALLOW_ALLOCATION(); | 1227 DISALLOW_ALLOCATION(); |
1223 DISALLOW_COPY_AND_ASSIGN(Assembler); | 1228 DISALLOW_COPY_AND_ASSIGN(Assembler); |
1224 }; | 1229 }; |
1225 | 1230 |
1226 } // namespace dart | 1231 } // namespace dart |
1227 | 1232 |
1228 #endif // VM_ASSEMBLER_MIPS_H_ | 1233 #endif // VM_ASSEMBLER_MIPS_H_ |
OLD | NEW |