OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 case kS390_SubPair: | 875 case kS390_SubPair: |
876 // i.InputRegister(0) ... left low word. | 876 // i.InputRegister(0) ... left low word. |
877 // i.InputRegister(1) ... left high word. | 877 // i.InputRegister(1) ... left high word. |
878 // i.InputRegister(2) ... right low word. | 878 // i.InputRegister(2) ... right low word. |
879 // i.InputRegister(3) ... right high word. | 879 // i.InputRegister(3) ... right high word. |
880 __ SubLogical32(i.OutputRegister(0), i.InputRegister(0), | 880 __ SubLogical32(i.OutputRegister(0), i.InputRegister(0), |
881 i.InputRegister(2)); | 881 i.InputRegister(2)); |
882 __ SubLogicalWithBorrow32(i.OutputRegister(1), i.InputRegister(1), | 882 __ SubLogicalWithBorrow32(i.OutputRegister(1), i.InputRegister(1), |
883 i.InputRegister(3)); | 883 i.InputRegister(3)); |
884 break; | 884 break; |
| 885 case kS390_MulPair: |
| 886 // i.InputRegister(0) ... left low word. |
| 887 // i.InputRegister(1) ... left high word. |
| 888 // i.InputRegister(2) ... right low word. |
| 889 // i.InputRegister(3) ... right high word. |
| 890 __ sllg(r0, i.InputRegister(1), Operand(32)); |
| 891 __ sllg(r1, i.InputRegister(3), Operand(32)); |
| 892 __ lr(r0, i.InputRegister(0)); |
| 893 __ lr(r1, i.InputRegister(2)); |
| 894 __ msgr(r1, r0); |
| 895 __ lr(i.OutputRegister(0), r1); |
| 896 __ srag(i.OutputRegister(1), r1, Operand(32)); |
| 897 break; |
885 case kS390_ShiftLeftPair: | 898 case kS390_ShiftLeftPair: |
886 if (instr->InputAt(2)->IsImmediate()) { | 899 if (instr->InputAt(2)->IsImmediate()) { |
887 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), | 900 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), |
888 i.InputRegister(0), i.InputRegister(1), | 901 i.InputRegister(0), i.InputRegister(1), |
889 i.InputInt32(2)); | 902 i.InputInt32(2)); |
890 } else { | 903 } else { |
891 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), | 904 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), |
892 i.InputRegister(0), i.InputRegister(1), kScratchReg, | 905 i.InputRegister(0), i.InputRegister(1), kScratchReg, |
893 i.InputRegister(2)); | 906 i.InputRegister(2)); |
894 } | 907 } |
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2067 padding_size -= 2; | 2080 padding_size -= 2; |
2068 } | 2081 } |
2069 } | 2082 } |
2070 } | 2083 } |
2071 | 2084 |
2072 #undef __ | 2085 #undef __ |
2073 | 2086 |
2074 } // namespace compiler | 2087 } // namespace compiler |
2075 } // namespace internal | 2088 } // namespace internal |
2076 } // namespace v8 | 2089 } // namespace v8 |
OLD | NEW |