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

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

Issue 1617503003: [Atomics] code stubs for atomic operations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: more WIP on using CodeStubAssembler 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
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 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 "e16dc7ff strd ip, [sp, #-127]!"); 996 "e16dc7ff strd ip, [sp, #-127]!");
997 997
998 COMPARE(pld(MemOperand(r1, 0)), 998 COMPARE(pld(MemOperand(r1, 0)),
999 "f5d1f000 pld [r1]"); 999 "f5d1f000 pld [r1]");
1000 COMPARE(pld(MemOperand(r2, 128)), 1000 COMPARE(pld(MemOperand(r2, 128)),
1001 "f5d2f080 pld [r2, #+128]"); 1001 "f5d2f080 pld [r2, #+128]");
1002 } 1002 }
1003 1003
1004 VERIFY_RUN(); 1004 VERIFY_RUN();
1005 } 1005 }
1006
1007
1008 TEST(Barrier) {
1009 SET_UP();
1010
1011 if (CpuFeatures::IsSupported(ARMv7)) {
1012 CpuFeatureScope scope(&assm, ARMv7);
1013
1014 COMPARE(dmb(OSHLD),
1015 "f57ff051 dmb oshld");
1016 COMPARE(dmb(OSHST),
1017 "f57ff052 dmb oshst");
1018 COMPARE(dmb(OSH),
1019 "f57ff053 dmb osh");
1020 COMPARE(dmb(NSHLD),
1021 "f57ff055 dmb nshld");
1022 COMPARE(dmb(NSHST),
1023 "f57ff056 dmb nshst");
1024 COMPARE(dmb(NSH),
1025 "f57ff057 dmb nsh");
1026 COMPARE(dmb(ISHLD),
1027 "f57ff059 dmb ishld");
1028 COMPARE(dmb(ISHST),
1029 "f57ff05a dmb ishst");
1030 COMPARE(dmb(ISH),
1031 "f57ff05b dmb ish");
1032 COMPARE(dmb(LD),
1033 "f57ff05d dmb ld");
1034 COMPARE(dmb(ST),
1035 "f57ff05e dmb st");
1036 COMPARE(dmb(SY),
1037 "f57ff05f dmb sy");
1038
1039 COMPARE(dsb(ISH),
1040 "f57ff04b dsb ish");
1041
1042 COMPARE(isb(ISH),
1043 "f57ff06b isb ish");
1044 }
1045
1046 VERIFY_RUN();
1047 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698