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

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

Issue 12367002: ARM backend support for pld (preload data) instruction Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: 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
« src/arm/simulator-arm.cc ('K') | « test/cctest/test-assembler-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 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 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 COMPARE(strd(r8, r9, MemOperand(r9, -127, PostIndex)), 856 COMPARE(strd(r8, r9, MemOperand(r9, -127, PostIndex)),
857 "e04987ff strd r8, [r9], #-127"); 857 "e04987ff strd r8, [r9], #-127");
858 COMPARE(strd(r10, fp, MemOperand(fp, 127, PreIndex)), 858 COMPARE(strd(r10, fp, MemOperand(fp, 127, PreIndex)),
859 "e1eba7ff strd r10, [fp, #+127]!"); 859 "e1eba7ff strd r10, [fp, #+127]!");
860 COMPARE(strd(ip, sp, MemOperand(sp, -127, PreIndex)), 860 COMPARE(strd(ip, sp, MemOperand(sp, -127, PreIndex)),
861 "e16dc7ff strd ip, [sp, #-127]!"); 861 "e16dc7ff strd ip, [sp, #-127]!");
862 } 862 }
863 863
864 VERIFY_RUN(); 864 VERIFY_RUN();
865 } 865 }
866
867
868 TEST(Preload) {
869 SET_UP();
870
871 COMPARE(pld(MemOperand(r1)),
872 "f5d1f000 pld [r1, #+0]");
873 COMPARE(pld(MemOperand(r2, 4)),
874 "f5d2f004 pld [r2, #+4]");
875 COMPARE(pld(MemOperand(r3, -8)),
876 "f553f008 pld [r3, #-8]");
877 COMPARE(pld(MemOperand(r1, r2)),
878 "f7d1f002 pld [r1, +r2]");
879 COMPARE(pld(MemOperand(r4, r5, NegOffset)),
880 "f754f005 pld [r4, -r5]");
881 COMPARE(pld(MemOperand(r1, r2, ASR, 2)),
882 "f7d1f142 pld [r1, +r2, asr #2]");
883 COMPARE(pld(MemOperand(r3, r4, LSL, 8, NegOffset)),
884 "f753f404 pld [r3, -r4, lsl #8]");
885
886 VERIFY_RUN();
887 }
888
OLDNEW
« src/arm/simulator-arm.cc ('K') | « test/cctest/test-assembler-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698