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

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

Issue 1698483002: [arm][arm64] Improve CountTrailingZero implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comments addressed Created 4 years, 10 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
« no previous file with comments | « 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 "32314201 eorccs r4, r1, #268435456"); 355 "32314201 eorccs r4, r1, #268435456");
356 356
357 VERIFY_RUN(); 357 VERIFY_RUN();
358 } 358 }
359 359
360 360
361 TEST(Type3) { 361 TEST(Type3) {
362 SET_UP(); 362 SET_UP();
363 363
364 if (CpuFeatures::IsSupported(ARMv7)) { 364 if (CpuFeatures::IsSupported(ARMv7)) {
365 CpuFeatureScope scope(&assm, ARMv7);
365 COMPARE(ubfx(r0, r1, 5, 10), 366 COMPARE(ubfx(r0, r1, 5, 10),
366 "e7e902d1 ubfx r0, r1, #5, #10"); 367 "e7e902d1 ubfx r0, r1, #5, #10");
367 COMPARE(ubfx(r1, r0, 5, 10), 368 COMPARE(ubfx(r1, r0, 5, 10),
368 "e7e912d0 ubfx r1, r0, #5, #10"); 369 "e7e912d0 ubfx r1, r0, #5, #10");
369 COMPARE(ubfx(r0, r1, 31, 1), 370 COMPARE(ubfx(r0, r1, 31, 1),
370 "e7e00fd1 ubfx r0, r1, #31, #1"); 371 "e7e00fd1 ubfx r0, r1, #31, #1");
371 COMPARE(ubfx(r1, r0, 31, 1), 372 COMPARE(ubfx(r1, r0, 31, 1),
372 "e7e01fd0 ubfx r1, r0, #31, #1"); 373 "e7e01fd0 ubfx r1, r0, #31, #1");
373 374
374 COMPARE(sbfx(r0, r1, 5, 10), 375 COMPARE(sbfx(r0, r1, 5, 10),
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 COMPARE(uxtb(r3, r4, 8), "e6ef3474 uxtb r3, r4, ror #8"); 431 COMPARE(uxtb(r3, r4, 8), "e6ef3474 uxtb r3, r4, ror #8");
431 432
432 COMPARE(uxtab(r3, r4, r5, 8), "e6e43475 uxtab r3, r4, r5, ror #8"); 433 COMPARE(uxtab(r3, r4, r5, 8), "e6e43475 uxtab r3, r4, r5, ror #8");
433 434
434 COMPARE(uxtb16(r3, r4, 8), "e6cf3474 uxtb16 r3, r4, ror #8"); 435 COMPARE(uxtb16(r3, r4, 8), "e6cf3474 uxtb16 r3, r4, ror #8");
435 436
436 COMPARE(uxth(r9, r10), "e6ff907a uxth r9, r10"); 437 COMPARE(uxth(r9, r10), "e6ff907a uxth r9, r10");
437 COMPARE(uxth(r3, r4, 8), "e6ff3474 uxth r3, r4, ror #8"); 438 COMPARE(uxth(r3, r4, 8), "e6ff3474 uxth r3, r4, ror #8");
438 439
439 COMPARE(uxtah(r3, r4, r5, 24), "e6f43c75 uxtah r3, r4, r5, ror #24"); 440 COMPARE(uxtah(r3, r4, r5, 24), "e6f43c75 uxtah r3, r4, r5, ror #24");
441
442 COMPARE(rbit(r1, r2), "e6ff1f32 rbit r1, r2");
443 COMPARE(rbit(r10, ip), "e6ffaf3c rbit r10, ip");
440 } 444 }
441 445
442 COMPARE(smmla(r0, r1, r2, r3), "e7503211 smmla r0, r1, r2, r3"); 446 COMPARE(smmla(r0, r1, r2, r3), "e7503211 smmla r0, r1, r2, r3");
443 COMPARE(smmla(r10, r9, r8, r7), "e75a7819 smmla r10, r9, r8, r7"); 447 COMPARE(smmla(r10, r9, r8, r7), "e75a7819 smmla r10, r9, r8, r7");
444 448
445 COMPARE(smmul(r0, r1, r2), "e750f211 smmul r0, r1, r2"); 449 COMPARE(smmul(r0, r1, r2), "e750f211 smmul r0, r1, r2");
446 COMPARE(smmul(r8, r9, r10), "e758fa19 smmul r8, r9, r10"); 450 COMPARE(smmul(r8, r9, r10), "e758fa19 smmul r8, r9, r10");
447 451
448 VERIFY_RUN(); 452 VERIFY_RUN();
449 } 453 }
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 "e16dc7ff strd ip, [sp, #-127]!"); 1024 "e16dc7ff strd ip, [sp, #-127]!");
1021 1025
1022 COMPARE(pld(MemOperand(r1, 0)), 1026 COMPARE(pld(MemOperand(r1, 0)),
1023 "f5d1f000 pld [r1]"); 1027 "f5d1f000 pld [r1]");
1024 COMPARE(pld(MemOperand(r2, 128)), 1028 COMPARE(pld(MemOperand(r2, 128)),
1025 "f5d2f080 pld [r2, #+128]"); 1029 "f5d2f080 pld [r2, #+128]");
1026 } 1030 }
1027 1031
1028 VERIFY_RUN(); 1032 VERIFY_RUN();
1029 } 1033 }
OLDNEW
« no previous file with comments | « test/cctest/test-assembler-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698