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

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

Issue 2256963003: MIPS: Implement Neg_d and Neg_s instruction macros. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix a typo Created 4 years, 4 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/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/mips/macro-assembler-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 2474 matching lines...) Expand 10 before | Expand all | Expand 10 after
2485 GenInstrRegister(COP1, D, f0, fs, fd, MOV_D); 2485 GenInstrRegister(COP1, D, f0, fs, fd, MOV_D);
2486 } 2486 }
2487 2487
2488 2488
2489 void Assembler::mov_s(FPURegister fd, FPURegister fs) { 2489 void Assembler::mov_s(FPURegister fd, FPURegister fs) {
2490 GenInstrRegister(COP1, S, f0, fs, fd, MOV_S); 2490 GenInstrRegister(COP1, S, f0, fs, fd, MOV_S);
2491 } 2491 }
2492 2492
2493 2493
2494 void Assembler::neg_s(FPURegister fd, FPURegister fs) { 2494 void Assembler::neg_s(FPURegister fd, FPURegister fs) {
2495 DCHECK(!IsMipsArchVariant(kMips32r6));
2495 GenInstrRegister(COP1, S, f0, fs, fd, NEG_S); 2496 GenInstrRegister(COP1, S, f0, fs, fd, NEG_S);
2496 } 2497 }
2497 2498
2498 2499
2499 void Assembler::neg_d(FPURegister fd, FPURegister fs) { 2500 void Assembler::neg_d(FPURegister fd, FPURegister fs) {
2501 DCHECK(!IsMipsArchVariant(kMips32r6));
2500 GenInstrRegister(COP1, D, f0, fs, fd, NEG_D); 2502 GenInstrRegister(COP1, D, f0, fs, fd, NEG_D);
2501 } 2503 }
2502 2504
2503 2505
2504 void Assembler::sqrt_s(FPURegister fd, FPURegister fs) { 2506 void Assembler::sqrt_s(FPURegister fd, FPURegister fs) {
2505 GenInstrRegister(COP1, S, f0, fs, fd, SQRT_S); 2507 GenInstrRegister(COP1, S, f0, fs, fd, SQRT_S);
2506 } 2508 }
2507 2509
2508 2510
2509 void Assembler::sqrt_d(FPURegister fd, FPURegister fs) { 2511 void Assembler::sqrt_d(FPURegister fd, FPURegister fs) {
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
3192 3194
3193 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 3195 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
3194 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); 3196 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t));
3195 } 3197 }
3196 } 3198 }
3197 3199
3198 } // namespace internal 3200 } // namespace internal
3199 } // namespace v8 3201 } // namespace v8
3200 3202
3201 #endif // V8_TARGET_ARCH_MIPS 3203 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698