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

Side by Side Diff: test/cctest/test-disasm-arm.cc

Issue 12391055: Cleaned up CpuFeature scope handling. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed nits Created 7 years, 9 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 | « test/cctest/test-assembler-ia32.cc ('k') | test/cctest/test-disasm-ia32.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 417
418 VERIFY_RUN(); 418 VERIFY_RUN();
419 } 419 }
420 420
421 421
422 422
423 TEST(Vfp) { 423 TEST(Vfp) {
424 SET_UP(); 424 SET_UP();
425 425
426 if (CpuFeatures::IsSupported(VFP3)) { 426 if (CpuFeatures::IsSupported(VFP3)) {
427 CpuFeatures::Scope scope(VFP3); 427 CpuFeatureScope scope(&assm, VFP3);
428 COMPARE(vmov(d0, r2, r3), 428 COMPARE(vmov(d0, r2, r3),
429 "ec432b10 vmov d0, r2, r3"); 429 "ec432b10 vmov d0, r2, r3");
430 COMPARE(vmov(r2, r3, d0), 430 COMPARE(vmov(r2, r3, d0),
431 "ec532b10 vmov r2, r3, d0"); 431 "ec532b10 vmov r2, r3, d0");
432 COMPARE(vmov(d0, d1), 432 COMPARE(vmov(d0, d1),
433 "eeb00b41 vmov.f64 d0, d1"); 433 "eeb00b41 vmov.f64 d0, d1");
434 COMPARE(vmov(d3, d3, eq), 434 COMPARE(vmov(d3, d3, eq),
435 "0eb03b43 vmoveq.f64 d3, d3"); 435 "0eb03b43 vmoveq.f64 d3, d3");
436 436
437 COMPARE(vmov(s0, s31), 437 COMPARE(vmov(s0, s31),
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 COMPARE(str(r0, MemOperand(r1, r2, PostIndex)), 827 COMPARE(str(r0, MemOperand(r1, r2, PostIndex)),
828 "e6810002 str r0, [r1], +r2"); 828 "e6810002 str r0, [r1], +r2");
829 COMPARE(str(r0, MemOperand(r1, r2, NegPostIndex)), 829 COMPARE(str(r0, MemOperand(r1, r2, NegPostIndex)),
830 "e6010002 str r0, [r1], -r2"); 830 "e6010002 str r0, [r1], -r2");
831 COMPARE(str(r0, MemOperand(r1, r2, PreIndex)), 831 COMPARE(str(r0, MemOperand(r1, r2, PreIndex)),
832 "e7a10002 str r0, [r1, +r2]!"); 832 "e7a10002 str r0, [r1, +r2]!");
833 COMPARE(str(r0, MemOperand(r1, r2, NegPreIndex)), 833 COMPARE(str(r0, MemOperand(r1, r2, NegPreIndex)),
834 "e7210002 str r0, [r1, -r2]!"); 834 "e7210002 str r0, [r1, -r2]!");
835 835
836 if (CpuFeatures::IsSupported(ARMv7)) { 836 if (CpuFeatures::IsSupported(ARMv7)) {
837 CpuFeatures::Scope scope(ARMv7); 837 CpuFeatureScope scope(&assm, ARMv7);
838 COMPARE(ldrd(r0, r1, MemOperand(r1)), 838 COMPARE(ldrd(r0, r1, MemOperand(r1)),
839 "e1c100d0 ldrd r0, [r1, #+0]"); 839 "e1c100d0 ldrd r0, [r1, #+0]");
840 COMPARE(ldrd(r2, r3, MemOperand(r3, 127)), 840 COMPARE(ldrd(r2, r3, MemOperand(r3, 127)),
841 "e1c327df ldrd r2, [r3, #+127]"); 841 "e1c327df ldrd r2, [r3, #+127]");
842 COMPARE(ldrd(r4, r5, MemOperand(r5, -127)), 842 COMPARE(ldrd(r4, r5, MemOperand(r5, -127)),
843 "e14547df ldrd r4, [r5, #-127]"); 843 "e14547df ldrd r4, [r5, #-127]");
844 COMPARE(ldrd(r6, r7, MemOperand(r7, 127, PostIndex)), 844 COMPARE(ldrd(r6, r7, MemOperand(r7, 127, PostIndex)),
845 "e0c767df ldrd r6, [r7], #+127"); 845 "e0c767df ldrd r6, [r7], #+127");
846 COMPARE(ldrd(r8, r9, MemOperand(r9, -127, PostIndex)), 846 COMPARE(ldrd(r8, r9, MemOperand(r9, -127, PostIndex)),
847 "e04987df ldrd r8, [r9], #-127"); 847 "e04987df ldrd r8, [r9], #-127");
(...skipping 13 matching lines...) Expand all
861 COMPARE(strd(r8, r9, MemOperand(r9, -127, PostIndex)), 861 COMPARE(strd(r8, r9, MemOperand(r9, -127, PostIndex)),
862 "e04987ff strd r8, [r9], #-127"); 862 "e04987ff strd r8, [r9], #-127");
863 COMPARE(strd(r10, fp, MemOperand(fp, 127, PreIndex)), 863 COMPARE(strd(r10, fp, MemOperand(fp, 127, PreIndex)),
864 "e1eba7ff strd r10, [fp, #+127]!"); 864 "e1eba7ff strd r10, [fp, #+127]!");
865 COMPARE(strd(ip, sp, MemOperand(sp, -127, PreIndex)), 865 COMPARE(strd(ip, sp, MemOperand(sp, -127, PreIndex)),
866 "e16dc7ff strd ip, [sp, #-127]!"); 866 "e16dc7ff strd ip, [sp, #-127]!");
867 } 867 }
868 868
869 VERIFY_RUN(); 869 VERIFY_RUN();
870 } 870 }
OLDNEW
« no previous file with comments | « test/cctest/test-assembler-ia32.cc ('k') | test/cctest/test-disasm-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698