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

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

Issue 1576026: Add support for bkpt instruction... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 8 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') | « src/arm/simulator-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 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 COMPARE(mvn(r10, Operand(r1)), 242 COMPARE(mvn(r10, Operand(r1)),
243 "e1e0a001 mvn r10, r1"); 243 "e1e0a001 mvn r10, r1");
244 COMPARE(mvn(r9, Operand(r2)), 244 COMPARE(mvn(r9, Operand(r2)),
245 "e1e09002 mvn r9, r2"); 245 "e1e09002 mvn r9, r2");
246 COMPARE(mvn(r0, Operand(r3), SetCC), 246 COMPARE(mvn(r0, Operand(r3), SetCC),
247 "e1f00003 mvns r0, r3"); 247 "e1f00003 mvns r0, r3");
248 COMPARE(mvn(r5, Operand(r4), SetCC, cc), 248 COMPARE(mvn(r5, Operand(r4), SetCC, cc),
249 "31f05004 mvnccs r5, r4"); 249 "31f05004 mvnccs r5, r4");
250 250
251 // Miscellaneous instructions encoded as type 0.
252 COMPARE(blx(ip),
253 "e12fff3c blx ip");
254 COMPARE(bkpt(0),
255 "e1200070 bkpt 0");
256 COMPARE(bkpt(0xffff),
257 "e12fff7f bkpt 65535");
258 COMPARE(clz(r6, r7),
259 "e16f6f17 clz r6, r7");
260
251 VERIFY_RUN(); 261 VERIFY_RUN();
252 } 262 }
253 263
254 264
255 TEST(Type1) { 265 TEST(Type1) {
256 SETUP(); 266 SETUP();
257 267
258 COMPARE(and_(r0, r1, Operand(0x00000000)), 268 COMPARE(and_(r0, r1, Operand(0x00000000)),
259 "e2010000 and r0, r1, #0"); 269 "e2010000 and r0, r1, #0");
260 COMPARE(and_(r1, r2, Operand(0x00000001), LeaveCC), 270 COMPARE(and_(r1, r2, Operand(0x00000001), LeaveCC),
(...skipping 11 matching lines...) Expand all
272 "e2244801 eor r4, r4, #65536"); 282 "e2244801 eor r4, r4, #65536");
273 COMPARE(eor(r4, r3, Operand(0x00100000), SetCC), 283 COMPARE(eor(r4, r3, Operand(0x00100000), SetCC),
274 "e2334601 eors r4, r3, #1048576"); 284 "e2334601 eors r4, r3, #1048576");
275 COMPARE(eor(r4, r2, Operand(0x01000000), LeaveCC, cs), 285 COMPARE(eor(r4, r2, Operand(0x01000000), LeaveCC, cs),
276 "22224401 eorcs r4, r2, #16777216"); 286 "22224401 eorcs r4, r2, #16777216");
277 COMPARE(eor(r4, r1, Operand(0x10000000), SetCC, cc), 287 COMPARE(eor(r4, r1, Operand(0x10000000), SetCC, cc),
278 "32314201 eorccs r4, r1, #268435456"); 288 "32314201 eorccs r4, r1, #268435456");
279 289
280 VERIFY_RUN(); 290 VERIFY_RUN();
281 } 291 }
OLDNEW
« src/arm/simulator-arm.cc ('K') | « src/arm/simulator-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698