OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 // a special xo_form | 855 // a special xo_form |
856 emit(EXT2 | ADDZEX | dst.code() * B21 | src1.code() * B16 | o | r); | 856 emit(EXT2 | ADDZEX | dst.code() * B21 | src1.code() * B16 | o | r); |
857 } | 857 } |
858 | 858 |
859 | 859 |
860 void Assembler::sub(Register dst, Register src1, Register src2, OEBit o, | 860 void Assembler::sub(Register dst, Register src1, Register src2, OEBit o, |
861 RCBit r) { | 861 RCBit r) { |
862 xo_form(EXT2 | SUBFX, dst, src2, src1, o, r); | 862 xo_form(EXT2 | SUBFX, dst, src2, src1, o, r); |
863 } | 863 } |
864 | 864 |
865 | 865 void Assembler::subc(Register dst, Register src1, Register src2, OEBit o, |
866 void Assembler::subfc(Register dst, Register src1, Register src2, OEBit o, | 866 RCBit r) { |
867 RCBit r) { | |
868 xo_form(EXT2 | SUBFCX, dst, src2, src1, o, r); | 867 xo_form(EXT2 | SUBFCX, dst, src2, src1, o, r); |
869 } | 868 } |
870 | 869 |
| 870 void Assembler::sube(Register dst, Register src1, Register src2, OEBit o, |
| 871 RCBit r) { |
| 872 xo_form(EXT2 | SUBFEX, dst, src2, src1, o, r); |
| 873 } |
871 | 874 |
872 void Assembler::subfic(Register dst, Register src, const Operand& imm) { | 875 void Assembler::subfic(Register dst, Register src, const Operand& imm) { |
873 d_form(SUBFIC, dst, src, imm.imm_, true); | 876 d_form(SUBFIC, dst, src, imm.imm_, true); |
874 } | 877 } |
875 | 878 |
876 | 879 |
877 void Assembler::add(Register dst, Register src1, Register src2, OEBit o, | 880 void Assembler::add(Register dst, Register src1, Register src2, OEBit o, |
878 RCBit r) { | 881 RCBit r) { |
879 xo_form(EXT2 | ADDX, dst, src1, src2, o, r); | 882 xo_form(EXT2 | ADDX, dst, src1, src2, o, r); |
880 } | 883 } |
(...skipping 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2478 | 2481 |
2479 trampoline_ = Trampoline(pc_offset() - size, tracked_branch_count_); | 2482 trampoline_ = Trampoline(pc_offset() - size, tracked_branch_count_); |
2480 } | 2483 } |
2481 } | 2484 } |
2482 | 2485 |
2483 | 2486 |
2484 } // namespace internal | 2487 } // namespace internal |
2485 } // namespace v8 | 2488 } // namespace v8 |
2486 | 2489 |
2487 #endif // V8_TARGET_ARCH_PPC | 2490 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |