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

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

Issue 709123005: [arm] Recognize SXTB, SXTH, UXTB and UXTH. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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-arm.cc ('k') | test/mjsunit/asm/sign-extend.js » ('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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 "e6e7201e usat r2, #7, lr"); 403 "e6e7201e usat r2, #7, lr");
404 COMPARE(usat(r3, 31, Operand(r4, LSL, 31)), 404 COMPARE(usat(r3, 31, Operand(r4, LSL, 31)),
405 "e6ff3f94 usat r3, #31, r4, lsl #31"); 405 "e6ff3f94 usat r3, #31, r4, lsl #31");
406 COMPARE(usat(r8, 0, Operand(r5, ASR, 17)), 406 COMPARE(usat(r8, 0, Operand(r5, ASR, 17)),
407 "e6e088d5 usat r8, #0, r5, asr #17"); 407 "e6e088d5 usat r8, #0, r5, asr #17");
408 408
409 COMPARE(pkhbt(r3, r4, Operand(r5, LSL, 17)), 409 COMPARE(pkhbt(r3, r4, Operand(r5, LSL, 17)),
410 "e6843895 pkhbt r3, r4, r5, lsl #17"); 410 "e6843895 pkhbt r3, r4, r5, lsl #17");
411 COMPARE(pkhtb(r3, r4, Operand(r5, ASR, 17)), 411 COMPARE(pkhtb(r3, r4, Operand(r5, ASR, 17)),
412 "e68438d5 pkhtb r3, r4, r5, asr #17"); 412 "e68438d5 pkhtb r3, r4, r5, asr #17");
413 COMPARE(uxtb(r9, Operand(r10, ROR, 0)), 413
414 "e6ef907a uxtb r9, r10"); 414 COMPARE(sxtb(r1, r7, 0, eq), "06af1077 sxtbeq r1, r7");
415 COMPARE(uxtb(r3, Operand(r4, ROR, 8)), 415 COMPARE(sxtb(r0, r0, 8, ne), "16af0470 sxtbne r0, r0, ror #8");
416 "e6ef3474 uxtb r3, r4, ror #8"); 416 COMPARE(sxtb(r9, r10, 16), "e6af987a sxtb r9, r10, ror #16");
417 COMPARE(uxtab(r3, r4, Operand(r5, ROR, 8)), 417 COMPARE(sxtb(r4, r3, 24), "e6af4c73 sxtb r4, r3, ror #24");
418 "e6e43475 uxtab r3, r4, r5, ror #8"); 418
419 COMPARE(uxtb16(r3, Operand(r4, ROR, 8)), 419 COMPARE(sxtab(r3, r4, r5), "e6a43075 sxtab r3, r4, r5");
420 "e6cf3474 uxtb16 r3, r4, ror #8"); 420
421 COMPARE(sxth(r5, r0), "e6bf5070 sxth r5, r0");
422 COMPARE(sxth(r5, r9, 8), "e6bf5479 sxth r5, r9, ror #8");
423 COMPARE(sxth(r5, r9, 16, hi), "86bf5879 sxthhi r5, r9, ror #16");
424 COMPARE(sxth(r8, r9, 24, cc), "36bf8c79 sxthcc r8, r9, ror #24");
425
426 COMPARE(sxtah(r3, r4, r5, 16), "e6b43875 sxtah r3, r4, r5, ror #16");
427
428 COMPARE(uxtb(r9, r10), "e6ef907a uxtb r9, r10");
429 COMPARE(uxtb(r3, r4, 8), "e6ef3474 uxtb r3, r4, ror #8");
430
431 COMPARE(uxtab(r3, r4, r5, 8), "e6e43475 uxtab r3, r4, r5, ror #8");
432
433 COMPARE(uxtb16(r3, r4, 8), "e6cf3474 uxtb16 r3, r4, ror #8");
434
435 COMPARE(uxth(r9, r10), "e6ff907a uxth r9, r10");
436 COMPARE(uxth(r3, r4, 8), "e6ff3474 uxth r3, r4, ror #8");
437
438 COMPARE(uxtah(r3, r4, r5, 24), "e6f43c75 uxtah r3, r4, r5, ror #24");
421 } 439 }
422 440
423 COMPARE(smmla(r0, r1, r2, r3), "e7503211 smmla r0, r1, r2, r3"); 441 COMPARE(smmla(r0, r1, r2, r3), "e7503211 smmla r0, r1, r2, r3");
424 COMPARE(smmla(r10, r9, r8, r7), "e75a7819 smmla r10, r9, r8, r7"); 442 COMPARE(smmla(r10, r9, r8, r7), "e75a7819 smmla r10, r9, r8, r7");
425 443
426 COMPARE(smmul(r0, r1, r2), "e750f211 smmul r0, r1, r2"); 444 COMPARE(smmul(r0, r1, r2), "e750f211 smmul r0, r1, r2");
427 COMPARE(smmul(r8, r9, r10), "e758fa19 smmul r8, r9, r10"); 445 COMPARE(smmul(r8, r9, r10), "e758fa19 smmul r8, r9, r10");
428 446
429 VERIFY_RUN(); 447 VERIFY_RUN();
430 } 448 }
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 "e16dc7ff strd ip, [sp, #-127]!"); 945 "e16dc7ff strd ip, [sp, #-127]!");
928 946
929 COMPARE(pld(MemOperand(r1, 0)), 947 COMPARE(pld(MemOperand(r1, 0)),
930 "f5d1f000 pld [r1]"); 948 "f5d1f000 pld [r1]");
931 COMPARE(pld(MemOperand(r2, 128)), 949 COMPARE(pld(MemOperand(r2, 128)),
932 "f5d2f080 pld [r2, #+128]"); 950 "f5d2f080 pld [r2, #+128]");
933 } 951 }
934 952
935 VERIFY_RUN(); 953 VERIFY_RUN();
936 } 954 }
OLDNEW
« no previous file with comments | « test/cctest/test-assembler-arm.cc ('k') | test/mjsunit/asm/sign-extend.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698