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

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

Issue 1835973003: S390: Impl Left/Right Logical/Arith Shift Pair (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update srda and srdl disasm format Created 4 years, 8 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/s390/assembler-s390.h ('k') | src/s390/disasm-s390.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 (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 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are 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 2318 matching lines...) Expand 10 before | Expand all | Expand 10 after
2329 void Assembler::sllg(Register r1, Register r3, Register opnd) { 2329 void Assembler::sllg(Register r1, Register r3, Register opnd) {
2330 DCHECK(!opnd.is(r0)); 2330 DCHECK(!opnd.is(r0));
2331 rsy_form(SLLG, r1, r3, opnd, 0); 2331 rsy_form(SLLG, r1, r3, opnd, 0);
2332 } 2332 }
2333 2333
2334 // Shift Left Single Logical (64) 2334 // Shift Left Single Logical (64)
2335 void Assembler::sllg(Register r1, Register r3, const Operand& opnd) { 2335 void Assembler::sllg(Register r1, Register r3, const Operand& opnd) {
2336 rsy_form(SLLG, r1, r3, r0, opnd.immediate()); 2336 rsy_form(SLLG, r1, r3, r0, opnd.immediate());
2337 } 2337 }
2338 2338
2339 // Shift Left Double Logical (64)
2340 void Assembler::sldl(Register r1, Register b2, const Operand& opnd) {
2341 DCHECK(r1.code() % 2 == 0);
2342 rs_form(SLDL, r1, r0, b2, opnd.immediate());
2343 }
2344
2339 // Shift Right Single Logical (32) 2345 // Shift Right Single Logical (32)
2340 void Assembler::srl(Register r1, Register opnd) { 2346 void Assembler::srl(Register r1, Register opnd) {
2341 DCHECK(!opnd.is(r0)); 2347 DCHECK(!opnd.is(r0));
2342 rs_form(SRL, r1, r0, opnd, 0); 2348 rs_form(SRL, r1, r0, opnd, 0);
2343 } 2349 }
2344 2350
2351 // Shift Right Double Arith (64)
2352 void Assembler::srda(Register r1, Register b2, const Operand& opnd) {
2353 DCHECK(r1.code() % 2 == 0);
2354 rs_form(SRDA, r1, r0, b2, opnd.immediate());
2355 }
2356
2357 // Shift Right Double Logical (64)
2358 void Assembler::srdl(Register r1, Register b2, const Operand& opnd) {
2359 DCHECK(r1.code() % 2 == 0);
2360 rs_form(SRDL, r1, r0, b2, opnd.immediate());
2361 }
2362
2345 // Shift Right Single Logical (32) 2363 // Shift Right Single Logical (32)
2346 void Assembler::srl(Register r1, const Operand& opnd) { 2364 void Assembler::srl(Register r1, const Operand& opnd) {
2347 rs_form(SRL, r1, r0, r0, opnd.immediate()); 2365 rs_form(SRL, r1, r0, r0, opnd.immediate());
2348 } 2366 }
2349 2367
2350 // Shift Right Single Logical (32) 2368 // Shift Right Single Logical (32)
2351 void Assembler::srlk(Register r1, Register r3, Register opnd) { 2369 void Assembler::srlk(Register r1, Register r3, Register opnd) {
2352 DCHECK(!opnd.is(r0)); 2370 DCHECK(!opnd.is(r0));
2353 rsy_form(SRLK, r1, r3, opnd, 0); 2371 rsy_form(SRLK, r1, r3, opnd, 0);
2354 } 2372 }
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
3031 3049
3032 reloc_info_writer.Write(&rinfo); 3050 reloc_info_writer.Write(&rinfo);
3033 } 3051 }
3034 3052
3035 reloc_info_writer.Finish(); 3053 reloc_info_writer.Finish();
3036 } 3054 }
3037 3055
3038 } // namespace internal 3056 } // namespace internal
3039 } // namespace v8 3057 } // namespace v8
3040 #endif // V8_TARGET_ARCH_S390 3058 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/s390/assembler-s390.h ('k') | src/s390/disasm-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698