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

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: remove Context() 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 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 "e16dc7ff strd ip, [sp, #-127]!"); 1020 "e16dc7ff strd ip, [sp, #-127]!");
1021 1021
1022 COMPARE(pld(MemOperand(r1, 0)), 1022 COMPARE(pld(MemOperand(r1, 0)),
1023 "f5d1f000 pld [r1]"); 1023 "f5d1f000 pld [r1]");
1024 COMPARE(pld(MemOperand(r2, 128)), 1024 COMPARE(pld(MemOperand(r2, 128)),
1025 "f5d2f080 pld [r2, #+128]"); 1025 "f5d2f080 pld [r2, #+128]");
1026 } 1026 }
1027 1027
1028 VERIFY_RUN(); 1028 VERIFY_RUN();
1029 } 1029 }
1030
1031
1032 TEST(Barrier) {
1033 SET_UP();
1034
1035 if (CpuFeatures::IsSupported(ARMv7)) {
1036 CpuFeatureScope scope(&assm, ARMv7);
1037
1038 COMPARE(dmb(OSHLD),
1039 "f57ff051 dmb oshld");
1040 COMPARE(dmb(OSHST),
1041 "f57ff052 dmb oshst");
1042 COMPARE(dmb(OSH),
1043 "f57ff053 dmb osh");
1044 COMPARE(dmb(NSHLD),
1045 "f57ff055 dmb nshld");
1046 COMPARE(dmb(NSHST),
1047 "f57ff056 dmb nshst");
1048 COMPARE(dmb(NSH),
1049 "f57ff057 dmb nsh");
1050 COMPARE(dmb(ISHLD),
1051 "f57ff059 dmb ishld");
1052 COMPARE(dmb(ISHST),
1053 "f57ff05a dmb ishst");
1054 COMPARE(dmb(ISH),
1055 "f57ff05b dmb ish");
1056 COMPARE(dmb(LD),
1057 "f57ff05d dmb ld");
1058 COMPARE(dmb(ST),
1059 "f57ff05e dmb st");
1060 COMPARE(dmb(SY),
1061 "f57ff05f dmb sy");
1062
1063 COMPARE(dsb(ISH),
1064 "f57ff04b dsb ish");
1065
1066 COMPARE(isb(ISH),
1067 "f57ff06b isb ish");
1068 }
1069
1070 VERIFY_RUN();
1071 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698