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