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

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

Issue 6117003: ARM: Add instruction VFPCompareAndSetFlags to macro assembler (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
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 2319 matching lines...) Expand 10 before | Expand all | Expand 10 after
2330 // cond(31-28) | 11101(27-23)| D=?(22) | 00(21-20) | Vn(19-16) | 2330 // cond(31-28) | 11101(27-23)| D=?(22) | 00(21-20) | Vn(19-16) |
2331 // Vd(15-12) | 101(11-9) | sz(8)=1 | N(7)=? | 0(6) | M=?(5) | 0(4) | Vm(3-0) 2331 // Vd(15-12) | 101(11-9) | sz(8)=1 | N(7)=? | 0(6) | M=?(5) | 0(4) | Vm(3-0)
2332 ASSERT(CpuFeatures::IsEnabled(VFP3)); 2332 ASSERT(CpuFeatures::IsEnabled(VFP3));
2333 emit(cond | 0xE*B24 | B23 | src1.code()*B16 | 2333 emit(cond | 0xE*B24 | B23 | src1.code()*B16 |
2334 dst.code()*B12 | 0x5*B9 | B8 | src2.code()); 2334 dst.code()*B12 | 0x5*B9 | B8 | src2.code());
2335 } 2335 }
2336 2336
2337 2337
2338 void Assembler::vcmp(const DwVfpRegister src1, 2338 void Assembler::vcmp(const DwVfpRegister src1,
2339 const DwVfpRegister src2, 2339 const DwVfpRegister src2,
2340 const SBit s,
2341 const Condition cond) { 2340 const Condition cond) {
2342 // vcmp(Dd, Dm) double precision floating point comparison. 2341 // vcmp(Dd, Dm) double precision floating point comparison.
2343 // We set bit E, as we want any NaN to set the cumulative exception flag 2342 // We set bit E, as we want any NaN to set the cumulative exception flag
2344 // in the FPSCR. 2343 // in the FPSCR.
2345 // Instruction details available in ARM DDI 0406A, A8-570. 2344 // Instruction details available in ARM DDI 0406A, A8-570.
2346 // cond(31-28) | 11101 (27-23)| D=?(22) | 11 (21-20) | 0100 (19-16) | 2345 // cond(31-28) | 11101 (27-23)| D=?(22) | 11 (21-20) | 0100 (19-16) |
2347 // Vd(15-12) | 101(11-9) | sz(8)=1 | E(7)=1 | 1(6) | M(5)=? | 0(4) | Vm(3-0) 2346 // Vd(15-12) | 101(11-9) | sz(8)=1 | E(7)=1 | 1(6) | M(5)=? | 0(4) | Vm(3-0)
2348 ASSERT(CpuFeatures::IsEnabled(VFP3)); 2347 ASSERT(CpuFeatures::IsEnabled(VFP3));
2349 emit(cond | 0xE*B24 |B23 | 0x3*B20 | B18 | 2348 emit(cond | 0xE*B24 |B23 | 0x3*B20 | B18 |
2350 src1.code()*B12 | 0x5*B9 | B8 | B7 | B6 | src2.code()); 2349 src1.code()*B12 | 0x5*B9 | B8 | B7 | B6 | src2.code());
2351 } 2350 }
2352 2351
2353 2352
2354 void Assembler::vcmp(const DwVfpRegister src1, 2353 void Assembler::vcmp(const DwVfpRegister src1,
2355 const double src2, 2354 const double src2,
2356 const SBit s,
2357 const Condition cond) { 2355 const Condition cond) {
2358 // vcmp(Dd, Dm) double precision floating point comparison. 2356 // vcmp(Dd, Dm) double precision floating point comparison.
2359 // Instruction details available in ARM DDI 0406A, A8-570. 2357 // Instruction details available in ARM DDI 0406A, A8-570.
2360 // We set bit E, as we want any NaN to set the cumulative exception flag 2358 // We set bit E, as we want any NaN to set the cumulative exception flag
2361 // in the FPSCR. 2359 // in the FPSCR.
2362 // cond(31-28) | 11101 (27-23)| D=?(22) | 11 (21-20) | 0101 (19-16) | 2360 // cond(31-28) | 11101 (27-23)| D=?(22) | 11 (21-20) | 0101 (19-16) |
2363 // Vd(15-12) | 101(11-9) | sz(8)=1 | E(7)=1 | 1(6) | M(5)=? | 0(4) | 0000(3-0) 2361 // Vd(15-12) | 101(11-9) | sz(8)=1 | E(7)=1 | 1(6) | M(5)=? | 0(4) | 0000(3-0)
2364 ASSERT(CpuFeatures::IsEnabled(VFP3)); 2362 ASSERT(CpuFeatures::IsEnabled(VFP3));
2365 ASSERT(src2 == 0.0); 2363 ASSERT(src2 == 0.0);
2366 emit(cond | 0xE*B24 |B23 | 0x3*B20 | B18 | B16 | 2364 emit(cond | 0xE*B24 |B23 | 0x3*B20 | B18 | B16 |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
2652 2650
2653 // Since a constant pool was just emitted, move the check offset forward by 2651 // Since a constant pool was just emitted, move the check offset forward by
2654 // the standard interval. 2652 // the standard interval.
2655 next_buffer_check_ = pc_offset() + kCheckConstInterval; 2653 next_buffer_check_ = pc_offset() + kCheckConstInterval;
2656 } 2654 }
2657 2655
2658 2656
2659 } } // namespace v8::internal 2657 } } // namespace v8::internal
2660 2658
2661 #endif // V8_TARGET_ARCH_ARM 2659 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/arm/code-stubs-arm.cc » ('j') | src/arm/code-stubs-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698