OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 <stdarg.h> | 5 #include <stdarg.h> |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #if V8_TARGET_ARCH_S390 | 9 #if V8_TARGET_ARCH_S390 |
10 | 10 |
(...skipping 10349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10360 | 10360 |
10361 r2_val = get_register(r2); | 10361 r2_val = get_register(r2); |
10362 | 10362 |
10363 int64_t mask = ~(1 << (63 - i)); | 10363 int64_t mask = ~(1 << (63 - i)); |
10364 set_register(r1, i); | 10364 set_register(r1, i); |
10365 set_register(r1 + 1, r2_val & mask); | 10365 set_register(r1 + 1, r2_val & mask); |
10366 return length; | 10366 return length; |
10367 } | 10367 } |
10368 | 10368 |
10369 EVALUATE(LLGCR) { | 10369 EVALUATE(LLGCR) { |
10370 UNIMPLEMENTED(); | 10370 DCHECK_OPCODE(LLGCR); |
10371 USE(instr); | 10371 DECODE_RRE_INSTRUCTION(r1, r2); |
10372 return 0; | 10372 uint64_t r2_val = get_low_register<uint64_t>(r2); |
| 10373 r2_val <<= 56; |
| 10374 r2_val >>= 56; |
| 10375 set_register(r1, r2_val); |
| 10376 return length; |
10373 } | 10377 } |
10374 | 10378 |
10375 EVALUATE(LLGHR) { | 10379 EVALUATE(LLGHR) { |
10376 UNIMPLEMENTED(); | 10380 UNIMPLEMENTED(); |
10377 USE(instr); | 10381 USE(instr); |
10378 return 0; | 10382 return 0; |
10379 } | 10383 } |
10380 | 10384 |
10381 EVALUATE(MLGR) { | 10385 EVALUATE(MLGR) { |
10382 UNIMPLEMENTED(); | 10386 UNIMPLEMENTED(); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10440 return 0; | 10444 return 0; |
10441 } | 10445 } |
10442 | 10446 |
10443 EVALUATE(TROO) { | 10447 EVALUATE(TROO) { |
10444 UNIMPLEMENTED(); | 10448 UNIMPLEMENTED(); |
10445 USE(instr); | 10449 USE(instr); |
10446 return 0; | 10450 return 0; |
10447 } | 10451 } |
10448 | 10452 |
10449 EVALUATE(LLCR) { | 10453 EVALUATE(LLCR) { |
10450 UNIMPLEMENTED(); | 10454 DCHECK_OPCODE(LLCR); |
10451 USE(instr); | 10455 DECODE_RRE_INSTRUCTION(r1, r2); |
10452 return 0; | 10456 uint32_t r2_val = get_low_register<uint32_t>(r2); |
| 10457 r2_val <<= 24; |
| 10458 r2_val >>= 24; |
| 10459 set_low_register(r1, r2_val); |
| 10460 return length; |
10453 } | 10461 } |
10454 | 10462 |
10455 EVALUATE(LLHR) { | 10463 EVALUATE(LLHR) { |
10456 UNIMPLEMENTED(); | 10464 UNIMPLEMENTED(); |
10457 USE(instr); | 10465 USE(instr); |
10458 return 0; | 10466 return 0; |
10459 } | 10467 } |
10460 | 10468 |
10461 EVALUATE(MLR) { | 10469 EVALUATE(MLR) { |
10462 DCHECK_OPCODE(MLR); | 10470 DCHECK_OPCODE(MLR); |
(...skipping 2344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12807 return 0; | 12815 return 0; |
12808 } | 12816 } |
12809 | 12817 |
12810 #undef EVALUATE | 12818 #undef EVALUATE |
12811 | 12819 |
12812 } // namespace internal | 12820 } // namespace internal |
12813 } // namespace v8 | 12821 } // namespace v8 |
12814 | 12822 |
12815 #endif // USE_SIMULATOR | 12823 #endif // USE_SIMULATOR |
12816 #endif // V8_TARGET_ARCH_S390 | 12824 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |