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

Side by Side Diff: src/arm/macro-assembler-arm.h

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
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 575
576 // Count leading zeros in a 32 bit word. On ARM5 and later it uses the clz 576 // Count leading zeros in a 32 bit word. On ARM5 and later it uses the clz
577 // instruction. On pre-ARM5 hardware this routine gives the wrong answer 577 // instruction. On pre-ARM5 hardware this routine gives the wrong answer
578 // for 0 (31 instead of 32). Source and scratch can be the same in which case 578 // for 0 (31 instead of 32). Source and scratch can be the same in which case
579 // the source is clobbered. Source and zeros can also be the same in which 579 // the source is clobbered. Source and zeros can also be the same in which
580 // case scratch should be a different register. 580 // case scratch should be a different register.
581 void CountLeadingZeros(Register zeros, 581 void CountLeadingZeros(Register zeros,
582 Register source, 582 Register source,
583 Register scratch); 583 Register scratch);
584 584
585 void VFPCompareAndSetFlags(const DwVfpRegister src1,
Rodolph Perfetta 2011/01/10 11:24:10 Since the instruction sets the flags, the s parame
Søren Thygesen Gjesse 2011/01/10 12:36:01 Done.
586 const DwVfpRegister src2,
587 const SBit s = LeaveCC,
588 const Condition cond = al) {
589 vcmp(src1, src2, s, cond);
590 vmrs(pc);
Rodolph Perfetta 2011/01/10 11:24:10 vmrs should be conditional too.
Søren Thygesen Gjesse 2011/01/10 12:36:01 Done.
591 }
592 void VFPCompareAndSetFlags(const DwVfpRegister src1,
Rodolph Perfetta 2011/01/10 11:24:10 As above.
Søren Thygesen Gjesse 2011/01/10 12:36:01 Done.
593 const double src2,
594 const SBit s = LeaveCC,
595 const Condition cond = al) {
596 vcmp(src1, src2, s, cond);
597 vmrs(pc);
598 }
599
585 // --------------------------------------------------------------------------- 600 // ---------------------------------------------------------------------------
586 // Runtime calls 601 // Runtime calls
587 602
588 // Call a code stub. 603 // Call a code stub.
589 void CallStub(CodeStub* stub, Condition cond = al); 604 void CallStub(CodeStub* stub, Condition cond = al);
590 605
591 // Call a code stub. 606 // Call a code stub.
592 void TailCallStub(CodeStub* stub, Condition cond = al); 607 void TailCallStub(CodeStub* stub, Condition cond = al);
593 608
594 // Call a runtime routine. 609 // Call a runtime routine.
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 838 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
824 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 839 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
825 #else 840 #else
826 #define ACCESS_MASM(masm) masm-> 841 #define ACCESS_MASM(masm) masm->
827 #endif 842 #endif
828 843
829 844
830 } } // namespace v8::internal 845 } } // namespace v8::internal
831 846
832 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 847 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698