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

Side by Side Diff: test/cctest/test-macro-assembler-mips.cc

Issue 1749263002: MIPS: Improve Lsa/Dlsa implementations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 4 years, 9 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
« no previous file with comments | « test/cctest/test-assembler-mips.cc ('k') | test/cctest/test-macro-assembler-mips64.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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 Label done; 260 Label done;
261 261
262 __ Push(ra); 262 __ Push(ra);
263 263
264 { 264 {
265 __ BlockTrampolinePoolFor(kNumCases + 6 + 1); 265 __ BlockTrampolinePoolFor(kNumCases + 6 + 1);
266 PredictableCodeSizeScope predictable( 266 PredictableCodeSizeScope predictable(
267 masm, kNumCases * kPointerSize + ((6 + 1) * Assembler::kInstrSize)); 267 masm, kNumCases * kPointerSize + ((6 + 1) * Assembler::kInstrSize));
268 268
269 __ addiupc(at, 6 + 1); 269 __ addiupc(at, 6 + 1);
270 __ lsa(at, at, a0, 2); 270 __ Lsa(at, at, a0, 2);
271 __ lw(at, MemOperand(at)); 271 __ lw(at, MemOperand(at));
272 __ jalr(at); 272 __ jalr(at);
273 __ nop(); // Branch delay slot nop. 273 __ nop(); // Branch delay slot nop.
274 __ bc(&done); 274 __ bc(&done);
275 // A nop instruction must be generated by the forbidden slot guard 275 // A nop instruction must be generated by the forbidden slot guard
276 // (Assembler::dd(Label*)). 276 // (Assembler::dd(Label*)).
277 for (int i = 0; i < kNumCases; ++i) { 277 for (int i = 0; i < kNumCases; ++i) {
278 __ dd(&labels[i]); 278 __ dd(&labels[i]);
279 } 279 }
280 } 280 }
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 int32_t input = *i; 460 int32_t input = *i;
461 CHECK_EQ(static_cast<double>(input), 461 CHECK_EQ(static_cast<double>(input),
462 run_Cvt<int32_t>(input, [](MacroAssembler* masm) { 462 run_Cvt<int32_t>(input, [](MacroAssembler* masm) {
463 __ cvt_d_w(f0, f4); 463 __ cvt_d_w(f0, f4);
464 __ Trunc_w_d(f2, f0); 464 __ Trunc_w_d(f2, f0);
465 })); 465 }));
466 } 466 }
467 } 467 }
468 468
469 #undef __ 469 #undef __
OLDNEW
« no previous file with comments | « test/cctest/test-assembler-mips.cc ('k') | test/cctest/test-macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698