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

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

Issue 1471913006: [turbofan] Implemented the optional Float32RoundDown operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed a debugging printf. Created 5 years 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
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 3386 matching lines...) Expand 10 before | Expand all | Expand 10 after
3397 DCHECK(CpuFeatures::IsSupported(ARMv8)); 3397 DCHECK(CpuFeatures::IsSupported(ARMv8));
3398 int vd, d; 3398 int vd, d;
3399 dst.split_code(&vd, &d); 3399 dst.split_code(&vd, &d);
3400 int vm, m; 3400 int vm, m;
3401 src.split_code(&vm, &m); 3401 src.split_code(&vm, &m);
3402 emit(kSpecialCondition | 0x1D * B23 | d * B22 | 0x3 * B20 | B19 | 0x2 * B16 | 3402 emit(kSpecialCondition | 0x1D * B23 | d * B22 | 0x3 * B20 | B19 | 0x2 * B16 |
3403 vd * B12 | 0x5 * B9 | B8 | B6 | m * B5 | vm); 3403 vd * B12 | 0x5 * B9 | B8 | B6 | m * B5 | vm);
3404 } 3404 }
3405 3405
3406 3406
3407 void Assembler::vrintm(const SwVfpRegister dst, const SwVfpRegister src) {
3408 // cond=kSpecialCondition(31-28) | 11101(27-23)| D(22) | 11(21-20) |
3409 // 10(19-18) | RM=11(17-16) | Vd(15-12) | 101(11-9) | sz=0(8) | 01(7-6) |
3410 // M(5) | 0(4) | Vm(3-0)
3411 DCHECK(CpuFeatures::IsSupported(ARMv8));
3412 int vd, d;
3413 dst.split_code(&vd, &d);
3414 int vm, m;
3415 src.split_code(&vm, &m);
3416 emit(kSpecialCondition | 0x1D * B23 | d * B22 | 0x3 * B20 | B19 | 0x3 * B16 |
3417 vd * B12 | 0x5 * B9 | B6 | m * B5 | vm);
3418 }
3419
3420
3407 void Assembler::vrintm(const DwVfpRegister dst, const DwVfpRegister src) { 3421 void Assembler::vrintm(const DwVfpRegister dst, const DwVfpRegister src) {
3408 // cond=kSpecialCondition(31-28) | 11101(27-23)| D(22) | 11(21-20) | 3422 // cond=kSpecialCondition(31-28) | 11101(27-23)| D(22) | 11(21-20) |
3409 // 10(19-18) | RM=11(17-16) | Vd(15-12) | 101(11-9) | sz=1(8) | 01(7-6) | 3423 // 10(19-18) | RM=11(17-16) | Vd(15-12) | 101(11-9) | sz=1(8) | 01(7-6) |
3410 // M(5) | 0(4) | Vm(3-0) 3424 // M(5) | 0(4) | Vm(3-0)
3411 DCHECK(CpuFeatures::IsSupported(ARMv8)); 3425 DCHECK(CpuFeatures::IsSupported(ARMv8));
3412 int vd, d; 3426 int vd, d;
3413 dst.split_code(&vd, &d); 3427 dst.split_code(&vd, &d);
3414 int vm, m; 3428 int vm, m;
3415 src.split_code(&vm, &m); 3429 src.split_code(&vm, &m);
3416 emit(kSpecialCondition | 0x1D * B23 | d * B22 | 0x3 * B20 | B19 | 0x3 * B16 | 3430 emit(kSpecialCondition | 0x1D * B23 | d * B22 | 0x3 * B20 | B19 | 0x3 * B16 |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
4039 DCHECK(is_uint12(offset)); 4053 DCHECK(is_uint12(offset));
4040 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset)); 4054 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset));
4041 } 4055 }
4042 } 4056 }
4043 4057
4044 4058
4045 } // namespace internal 4059 } // namespace internal
4046 } // namespace v8 4060 } // namespace v8
4047 4061
4048 #endif // V8_TARGET_ARCH_ARM 4062 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/arm/simulator-arm.cc » ('j') | src/arm/simulator-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698