OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 6536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6547 CHECK_EQUAL_FP64(kFP64PositiveInfinity, d19); | 6547 CHECK_EQUAL_FP64(kFP64PositiveInfinity, d19); |
6548 CHECK_EQUAL_FP64(kFP64NegativeInfinity, d20); | 6548 CHECK_EQUAL_FP64(kFP64NegativeInfinity, d20); |
6549 CHECK_EQUAL_FP64(0.0, d21); | 6549 CHECK_EQUAL_FP64(0.0, d21); |
6550 CHECK_EQUAL_FP64(-0.0, d22); | 6550 CHECK_EQUAL_FP64(-0.0, d22); |
6551 CHECK_EQUAL_FP64(-0.0, d23); | 6551 CHECK_EQUAL_FP64(-0.0, d23); |
6552 | 6552 |
6553 TEARDOWN(); | 6553 TEARDOWN(); |
6554 } | 6554 } |
6555 | 6555 |
6556 | 6556 |
| 6557 TEST(frintp) { |
| 6558 INIT_V8(); |
| 6559 SETUP(); |
| 6560 |
| 6561 START(); |
| 6562 __ Fmov(s16, 1.0); |
| 6563 __ Fmov(s17, 1.1); |
| 6564 __ Fmov(s18, 1.5); |
| 6565 __ Fmov(s19, 1.9); |
| 6566 __ Fmov(s20, 2.5); |
| 6567 __ Fmov(s21, -1.5); |
| 6568 __ Fmov(s22, -2.5); |
| 6569 __ Fmov(s23, kFP32PositiveInfinity); |
| 6570 __ Fmov(s24, kFP32NegativeInfinity); |
| 6571 __ Fmov(s25, 0.0); |
| 6572 __ Fmov(s26, -0.0); |
| 6573 __ Fmov(s27, -0.2); |
| 6574 |
| 6575 __ Frintp(s0, s16); |
| 6576 __ Frintp(s1, s17); |
| 6577 __ Frintp(s2, s18); |
| 6578 __ Frintp(s3, s19); |
| 6579 __ Frintp(s4, s20); |
| 6580 __ Frintp(s5, s21); |
| 6581 __ Frintp(s6, s22); |
| 6582 __ Frintp(s7, s23); |
| 6583 __ Frintp(s8, s24); |
| 6584 __ Frintp(s9, s25); |
| 6585 __ Frintp(s10, s26); |
| 6586 __ Frintp(s11, s27); |
| 6587 |
| 6588 __ Fmov(d16, -0.5); |
| 6589 __ Fmov(d17, -0.8); |
| 6590 __ Fmov(d18, 1.5); |
| 6591 __ Fmov(d19, 1.9); |
| 6592 __ Fmov(d20, 2.5); |
| 6593 __ Fmov(d21, -1.5); |
| 6594 __ Fmov(d22, -2.5); |
| 6595 __ Fmov(d23, kFP32PositiveInfinity); |
| 6596 __ Fmov(d24, kFP32NegativeInfinity); |
| 6597 __ Fmov(d25, 0.0); |
| 6598 __ Fmov(d26, -0.0); |
| 6599 __ Fmov(d27, -0.2); |
| 6600 |
| 6601 __ Frintp(d12, d16); |
| 6602 __ Frintp(d13, d17); |
| 6603 __ Frintp(d14, d18); |
| 6604 __ Frintp(d15, d19); |
| 6605 __ Frintp(d16, d20); |
| 6606 __ Frintp(d17, d21); |
| 6607 __ Frintp(d18, d22); |
| 6608 __ Frintp(d19, d23); |
| 6609 __ Frintp(d20, d24); |
| 6610 __ Frintp(d21, d25); |
| 6611 __ Frintp(d22, d26); |
| 6612 __ Frintp(d23, d27); |
| 6613 END(); |
| 6614 |
| 6615 RUN(); |
| 6616 |
| 6617 CHECK_EQUAL_FP32(1.0, s0); |
| 6618 CHECK_EQUAL_FP32(2.0, s1); |
| 6619 CHECK_EQUAL_FP32(2.0, s2); |
| 6620 CHECK_EQUAL_FP32(2.0, s3); |
| 6621 CHECK_EQUAL_FP32(3.0, s4); |
| 6622 CHECK_EQUAL_FP32(-1.0, s5); |
| 6623 CHECK_EQUAL_FP32(-2.0, s6); |
| 6624 CHECK_EQUAL_FP32(kFP32PositiveInfinity, s7); |
| 6625 CHECK_EQUAL_FP32(kFP32NegativeInfinity, s8); |
| 6626 CHECK_EQUAL_FP32(0.0, s9); |
| 6627 CHECK_EQUAL_FP32(-0.0, s10); |
| 6628 CHECK_EQUAL_FP32(-0.0, s11); |
| 6629 CHECK_EQUAL_FP64(-0.0, d12); |
| 6630 CHECK_EQUAL_FP64(-0.0, d13); |
| 6631 CHECK_EQUAL_FP64(2.0, d14); |
| 6632 CHECK_EQUAL_FP64(2.0, d15); |
| 6633 CHECK_EQUAL_FP64(3.0, d16); |
| 6634 CHECK_EQUAL_FP64(-1.0, d17); |
| 6635 CHECK_EQUAL_FP64(-2.0, d18); |
| 6636 CHECK_EQUAL_FP64(kFP64PositiveInfinity, d19); |
| 6637 CHECK_EQUAL_FP64(kFP64NegativeInfinity, d20); |
| 6638 CHECK_EQUAL_FP64(0.0, d21); |
| 6639 CHECK_EQUAL_FP64(-0.0, d22); |
| 6640 CHECK_EQUAL_FP64(-0.0, d23); |
| 6641 |
| 6642 TEARDOWN(); |
| 6643 } |
| 6644 |
| 6645 |
6557 TEST(frintz) { | 6646 TEST(frintz) { |
6558 INIT_V8(); | 6647 INIT_V8(); |
6559 SETUP(); | 6648 SETUP(); |
6560 | 6649 |
6561 START(); | 6650 START(); |
6562 __ Fmov(s16, 1.0); | 6651 __ Fmov(s16, 1.0); |
6563 __ Fmov(s17, 1.1); | 6652 __ Fmov(s17, 1.1); |
6564 __ Fmov(s18, 1.5); | 6653 __ Fmov(s18, 1.5); |
6565 __ Fmov(s19, 1.9); | 6654 __ Fmov(s19, 1.9); |
6566 __ Fmov(s20, 2.5); | 6655 __ Fmov(s20, 2.5); |
(...skipping 4560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11127 if (RelocInfo::IsVeneerPool(info->rmode())) { | 11216 if (RelocInfo::IsVeneerPool(info->rmode())) { |
11128 DCHECK(info->data() == veneer_pool_size); | 11217 DCHECK(info->data() == veneer_pool_size); |
11129 ++pool_count; | 11218 ++pool_count; |
11130 } | 11219 } |
11131 } | 11220 } |
11132 | 11221 |
11133 DCHECK(pool_count == 2); | 11222 DCHECK(pool_count == 2); |
11134 | 11223 |
11135 TEARDOWN(); | 11224 TEARDOWN(); |
11136 } | 11225 } |
OLD | NEW |