OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 <stdlib.h> | 5 #include <stdlib.h> |
6 #include <cmath> | 6 #include <cmath> |
7 #include <cstdarg> | 7 #include <cstdarg> |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #if V8_TARGET_ARCH_ARM64 | 10 #if V8_TARGET_ARCH_ARM64 |
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1058 last_nzcv = nzcv(); | 1058 last_nzcv = nzcv(); |
1059 | 1059 |
1060 static SimSystemRegister last_fpcr; | 1060 static SimSystemRegister last_fpcr; |
1061 if (print_all || first_run || (last_fpcr.RawValue() != fpcr().RawValue())) { | 1061 if (print_all || first_run || (last_fpcr.RawValue() != fpcr().RawValue())) { |
1062 static const char * rmode[] = { | 1062 static const char * rmode[] = { |
1063 "0b00 (Round to Nearest)", | 1063 "0b00 (Round to Nearest)", |
1064 "0b01 (Round towards Plus Infinity)", | 1064 "0b01 (Round towards Plus Infinity)", |
1065 "0b10 (Round towards Minus Infinity)", | 1065 "0b10 (Round towards Minus Infinity)", |
1066 "0b11 (Round towards Zero)" | 1066 "0b11 (Round towards Zero)" |
1067 }; | 1067 }; |
1068 ASSERT(fpcr().RMode() <= (sizeof(rmode) / sizeof(rmode[0]))); | 1068 ASSERT(fpcr().RMode() < ARRAY_SIZE(rmode)); |
1069 fprintf(stream_, "# %sFPCR: %sAHP:%d DN:%d FZ:%d RMode:%s%s\n", | 1069 fprintf(stream_, "# %sFPCR: %sAHP:%d DN:%d FZ:%d RMode:%s%s\n", |
1070 clr_flag_name, | 1070 clr_flag_name, |
1071 clr_flag_value, | 1071 clr_flag_value, |
1072 fpcr().AHP(), fpcr().DN(), fpcr().FZ(), rmode[fpcr().RMode()], | 1072 fpcr().AHP(), fpcr().DN(), fpcr().FZ(), rmode[fpcr().RMode()], |
1073 clr_normal); | 1073 clr_normal); |
1074 } | 1074 } |
1075 last_fpcr = fpcr(); | 1075 last_fpcr = fpcr(); |
1076 | 1076 |
1077 first_run = false; | 1077 first_run = false; |
1078 } | 1078 } |
(...skipping 2650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3729 | 3729 |
3730 delete[] format; | 3730 delete[] format; |
3731 } | 3731 } |
3732 | 3732 |
3733 | 3733 |
3734 #endif // USE_SIMULATOR | 3734 #endif // USE_SIMULATOR |
3735 | 3735 |
3736 } } // namespace v8::internal | 3736 } } // namespace v8::internal |
3737 | 3737 |
3738 #endif // V8_TARGET_ARCH_ARM64 | 3738 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |