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

Side by Side Diff: src/mips/assembler-mips.cc

Issue 2313623002: MIPS: Implement MADD.S, MSUB, MADDF and MSUBF. (Closed)
Patch Set: Added blocks and unreachable sections. Created 4 years, 3 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 | « src/mips/assembler-mips.h ('k') | src/mips/constants-mips.h » ('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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 2435 matching lines...) Expand 10 before | Expand all | Expand 10 after
2446 2446
2447 void Assembler::mul_s(FPURegister fd, FPURegister fs, FPURegister ft) { 2447 void Assembler::mul_s(FPURegister fd, FPURegister fs, FPURegister ft) {
2448 GenInstrRegister(COP1, S, ft, fs, fd, MUL_S); 2448 GenInstrRegister(COP1, S, ft, fs, fd, MUL_S);
2449 } 2449 }
2450 2450
2451 2451
2452 void Assembler::mul_d(FPURegister fd, FPURegister fs, FPURegister ft) { 2452 void Assembler::mul_d(FPURegister fd, FPURegister fs, FPURegister ft) {
2453 GenInstrRegister(COP1, D, ft, fs, fd, MUL_D); 2453 GenInstrRegister(COP1, D, ft, fs, fd, MUL_D);
2454 } 2454 }
2455 2455
2456 void Assembler::madd_s(FPURegister fd, FPURegister fr, FPURegister fs,
2457 FPURegister ft) {
2458 DCHECK(IsMipsArchVariant(kMips32r2));
2459 GenInstrRegister(COP1X, fr, ft, fs, fd, MADD_S);
2460 }
2456 2461
2457 void Assembler::madd_d(FPURegister fd, FPURegister fr, FPURegister fs, 2462 void Assembler::madd_d(FPURegister fd, FPURegister fr, FPURegister fs,
2458 FPURegister ft) { 2463 FPURegister ft) {
2459 DCHECK(IsMipsArchVariant(kMips32r2)); 2464 DCHECK(IsMipsArchVariant(kMips32r2));
2460 GenInstrRegister(COP1X, fr, ft, fs, fd, MADD_D); 2465 GenInstrRegister(COP1X, fr, ft, fs, fd, MADD_D);
2461 } 2466 }
2462 2467
2468 void Assembler::msub_s(FPURegister fd, FPURegister fr, FPURegister fs,
2469 FPURegister ft) {
2470 DCHECK(IsMipsArchVariant(kMips32r2));
2471 GenInstrRegister(COP1X, fr, ft, fs, fd, MSUB_S);
2472 }
2473
2474 void Assembler::msub_d(FPURegister fd, FPURegister fr, FPURegister fs,
2475 FPURegister ft) {
2476 DCHECK(IsMipsArchVariant(kMips32r2));
2477 GenInstrRegister(COP1X, fr, ft, fs, fd, MSUB_D);
2478 }
2479
2480 void Assembler::maddf_s(FPURegister fd, FPURegister fs, FPURegister ft) {
2481 DCHECK(IsMipsArchVariant(kMips32r6));
2482 GenInstrRegister(COP1, S, ft, fs, fd, MADDF_S);
2483 }
2484
2485 void Assembler::maddf_d(FPURegister fd, FPURegister fs, FPURegister ft) {
2486 DCHECK(IsMipsArchVariant(kMips32r6));
2487 GenInstrRegister(COP1, D, ft, fs, fd, MADDF_D);
2488 }
2489
2490 void Assembler::msubf_s(FPURegister fd, FPURegister fs, FPURegister ft) {
2491 DCHECK(IsMipsArchVariant(kMips32r6));
2492 GenInstrRegister(COP1, S, ft, fs, fd, MSUBF_S);
2493 }
2494
2495 void Assembler::msubf_d(FPURegister fd, FPURegister fs, FPURegister ft) {
2496 DCHECK(IsMipsArchVariant(kMips32r6));
2497 GenInstrRegister(COP1, D, ft, fs, fd, MSUBF_D);
2498 }
2463 2499
2464 void Assembler::div_s(FPURegister fd, FPURegister fs, FPURegister ft) { 2500 void Assembler::div_s(FPURegister fd, FPURegister fs, FPURegister ft) {
2465 GenInstrRegister(COP1, S, ft, fs, fd, DIV_S); 2501 GenInstrRegister(COP1, S, ft, fs, fd, DIV_S);
2466 } 2502 }
2467 2503
2468 2504
2469 void Assembler::div_d(FPURegister fd, FPURegister fs, FPURegister ft) { 2505 void Assembler::div_d(FPURegister fd, FPURegister fs, FPURegister ft) {
2470 GenInstrRegister(COP1, D, ft, fs, fd, DIV_D); 2506 GenInstrRegister(COP1, D, ft, fs, fd, DIV_D);
2471 } 2507 }
2472 2508
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
3192 3228
3193 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 3229 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
3194 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); 3230 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t));
3195 } 3231 }
3196 } 3232 }
3197 3233
3198 } // namespace internal 3234 } // namespace internal
3199 } // namespace v8 3235 } // namespace v8
3200 3236
3201 #endif // V8_TARGET_ARCH_MIPS 3237 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/mips/constants-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698