Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: src/a64/simulator-a64.cc

Issue 157543002: A64: Synchronize with r18581. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/a64/lithium-codegen-a64.cc ('k') | src/a64/stub-cache-a64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2042 matching lines...) Expand 10 before | Expand all | Expand 10 after
2053 2053
2054 void Simulator::VisitFPDataProcessing1Source(Instruction* instr) { 2054 void Simulator::VisitFPDataProcessing1Source(Instruction* instr) {
2055 AssertSupportedFPCR(); 2055 AssertSupportedFPCR();
2056 2056
2057 unsigned fd = instr->Rd(); 2057 unsigned fd = instr->Rd();
2058 unsigned fn = instr->Rn(); 2058 unsigned fn = instr->Rn();
2059 2059
2060 switch (instr->Mask(FPDataProcessing1SourceMask)) { 2060 switch (instr->Mask(FPDataProcessing1SourceMask)) {
2061 case FMOV_s: set_sreg(fd, sreg(fn)); break; 2061 case FMOV_s: set_sreg(fd, sreg(fn)); break;
2062 case FMOV_d: set_dreg(fd, dreg(fn)); break; 2062 case FMOV_d: set_dreg(fd, dreg(fn)); break;
2063 case FABS_s: set_sreg(fd, fabs(sreg(fn))); break; 2063 case FABS_s: set_sreg(fd, std::fabs(sreg(fn))); break;
2064 case FABS_d: set_dreg(fd, fabs(dreg(fn))); break; 2064 case FABS_d: set_dreg(fd, std::fabs(dreg(fn))); break;
2065 case FNEG_s: set_sreg(fd, -sreg(fn)); break; 2065 case FNEG_s: set_sreg(fd, -sreg(fn)); break;
2066 case FNEG_d: set_dreg(fd, -dreg(fn)); break; 2066 case FNEG_d: set_dreg(fd, -dreg(fn)); break;
2067 case FSQRT_s: set_sreg(fd, sqrt(sreg(fn))); break; 2067 case FSQRT_s: set_sreg(fd, std::sqrt(sreg(fn))); break;
2068 case FSQRT_d: set_dreg(fd, sqrt(dreg(fn))); break; 2068 case FSQRT_d: set_dreg(fd, std::sqrt(dreg(fn))); break;
2069 case FRINTA_s: set_sreg(fd, FPRoundInt(sreg(fn), FPTieAway)); break; 2069 case FRINTA_s: set_sreg(fd, FPRoundInt(sreg(fn), FPTieAway)); break;
2070 case FRINTA_d: set_dreg(fd, FPRoundInt(dreg(fn), FPTieAway)); break; 2070 case FRINTA_d: set_dreg(fd, FPRoundInt(dreg(fn), FPTieAway)); break;
2071 case FRINTN_s: set_sreg(fd, FPRoundInt(sreg(fn), FPTieEven)); break; 2071 case FRINTN_s: set_sreg(fd, FPRoundInt(sreg(fn), FPTieEven)); break;
2072 case FRINTN_d: set_dreg(fd, FPRoundInt(dreg(fn), FPTieEven)); break; 2072 case FRINTN_d: set_dreg(fd, FPRoundInt(dreg(fn), FPTieEven)); break;
2073 case FRINTZ_s: set_sreg(fd, FPRoundInt(sreg(fn), FPZero)); break; 2073 case FRINTZ_s: set_sreg(fd, FPRoundInt(sreg(fn), FPZero)); break;
2074 case FRINTZ_d: set_dreg(fd, FPRoundInt(dreg(fn), FPZero)); break; 2074 case FRINTZ_d: set_dreg(fd, FPRoundInt(dreg(fn), FPZero)); break;
2075 case FCVT_ds: set_dreg(fd, FPToDouble(sreg(fn))); break; 2075 case FCVT_ds: set_dreg(fd, FPToDouble(sreg(fn))); break;
2076 case FCVT_sd: set_sreg(fd, FPToFloat(dreg(fn), FPTieEven)); break; 2076 case FCVT_sd: set_sreg(fd, FPToFloat(dreg(fn), FPTieEven)); break;
2077 default: UNIMPLEMENTED(); 2077 default: UNIMPLEMENTED();
2078 } 2078 }
(...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after
3346 default: 3346 default:
3347 UNIMPLEMENTED(); 3347 UNIMPLEMENTED();
3348 } 3348 }
3349 } 3349 }
3350 3350
3351 #endif // USE_SIMULATOR 3351 #endif // USE_SIMULATOR
3352 3352
3353 } } // namespace v8::internal 3353 } } // namespace v8::internal
3354 3354
3355 #endif // V8_TARGET_ARCH_A64 3355 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « src/a64/lithium-codegen-a64.cc ('k') | src/a64/stub-cache-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698