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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 } | 755 } |
756 | 756 |
757 void mult(Register rs, Register rt) { | 757 void mult(Register rs, Register rt) { |
758 EmitRType(SPECIAL, rs, rt, R0, 0, MULT); | 758 EmitRType(SPECIAL, rs, rt, R0, 0, MULT); |
759 } | 759 } |
760 | 760 |
761 void multu(Register rs, Register rt) { | 761 void multu(Register rs, Register rt) { |
762 EmitRType(SPECIAL, rs, rt, R0, 0, MULTU); | 762 EmitRType(SPECIAL, rs, rt, R0, 0, MULTU); |
763 } | 763 } |
764 | 764 |
| 765 void negd(DRegister dd, DRegister ds) { |
| 766 FRegister fd = static_cast<FRegister>(dd * 2); |
| 767 FRegister fs = static_cast<FRegister>(ds * 2); |
| 768 EmitFpuRType(COP1, FMT_D, F0, fs, fd, COP1_NEG); |
| 769 } |
| 770 |
765 void nop() { | 771 void nop() { |
766 Emit(Instr::kNopInstruction); | 772 Emit(Instr::kNopInstruction); |
767 } | 773 } |
768 | 774 |
769 void nor(Register rd, Register rs, Register rt) { | 775 void nor(Register rd, Register rs, Register rt) { |
770 EmitRType(SPECIAL, rs, rt, rd, 0, NOR); | 776 EmitRType(SPECIAL, rs, rt, rd, 0, NOR); |
771 } | 777 } |
772 | 778 |
773 void or_(Register rd, Register rs, Register rt) { | 779 void or_(Register rd, Register rs, Register rt) { |
774 EmitRType(SPECIAL, rs, rt, rd, 0, OR); | 780 EmitRType(SPECIAL, rs, rt, rd, 0, OR); |
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1745 Register value, | 1751 Register value, |
1746 Label* no_update); | 1752 Label* no_update); |
1747 | 1753 |
1748 DISALLOW_ALLOCATION(); | 1754 DISALLOW_ALLOCATION(); |
1749 DISALLOW_COPY_AND_ASSIGN(Assembler); | 1755 DISALLOW_COPY_AND_ASSIGN(Assembler); |
1750 }; | 1756 }; |
1751 | 1757 |
1752 } // namespace dart | 1758 } // namespace dart |
1753 | 1759 |
1754 #endif // VM_ASSEMBLER_MIPS_H_ | 1760 #endif // VM_ASSEMBLER_MIPS_H_ |
OLD | NEW |