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

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

Issue 1990073002: Add {lda,stl}x?r{,b,h} instructions to ARM64 assembler/disassembler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: typo Created 4 years, 7 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 | « src/arm64/simulator-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 COMPARE(ldpsw(x0, x1, MemOperand(x2)), "ldpsw x0, x1, [x2]"); 1252 COMPARE(ldpsw(x0, x1, MemOperand(x2)), "ldpsw x0, x1, [x2]");
1253 COMPARE(ldpsw(x3, x4, MemOperand(x5, 16)), "ldpsw x3, x4, [x5, #16]"); 1253 COMPARE(ldpsw(x3, x4, MemOperand(x5, 16)), "ldpsw x3, x4, [x5, #16]");
1254 COMPARE(ldpsw(x6, x7, MemOperand(x8, -32, PreIndex)), 1254 COMPARE(ldpsw(x6, x7, MemOperand(x8, -32, PreIndex)),
1255 "ldpsw x6, x7, [x8, #-32]!"); 1255 "ldpsw x6, x7, [x8, #-32]!");
1256 COMPARE(ldpsw(x9, x10, MemOperand(x11, 128, PostIndex)), 1256 COMPARE(ldpsw(x9, x10, MemOperand(x11, 128, PostIndex)),
1257 "ldpsw x9, x10, [x11], #128"); 1257 "ldpsw x9, x10, [x11], #128");
1258 1258
1259 CLEANUP(); 1259 CLEANUP();
1260 } 1260 }
1261 1261
1262 TEST_(load_store_acquire_release) {
1263 SET_UP_MASM();
1264
1265 COMPARE(ldar(w0, x1), "ldar w0, [x1]");
1266 COMPARE(ldarb(w2, x3), "ldarb w2, [x3]");
1267 COMPARE(ldarh(w4, x5), "ldarh w4, [x5]");
1268 COMPARE(ldaxr(w6, x7), "ldaxr w6, [x7]");
1269 COMPARE(ldaxrb(w8, x9), "ldaxrb w8, [x9]");
1270 COMPARE(ldaxrh(w10, x11), "ldaxrh w10, [x11]");
1271 COMPARE(stlr(w12, x13), "stlr w12, [x13]");
1272 COMPARE(stlrb(w14, x15), "stlrb w14, [x15]");
1273 COMPARE(stlrh(w16, x17), "stlrh w16, [x17]");
1274 COMPARE(stlxr(w18, w19, x20), "stlxr w18, w19, [x20]");
1275 COMPARE(stlxrb(w21, w22, x23), "stlxrb w21, w22, [x23]");
1276 COMPARE(stlxrh(w24, w25, x26), "stlxrh w24, w25, [x26]");
1277
1278 CLEANUP();
1279 }
1262 1280
1263 #if 0 // TODO(all): enable. 1281 #if 0 // TODO(all): enable.
1264 TEST_(load_literal) { 1282 TEST_(load_literal) {
1265 SET_UP_ASM(); 1283 SET_UP_ASM();
1266 1284
1267 COMPARE_PREFIX(ldr(x10, 0x1234567890abcdefUL), "ldr x10, pc+8"); 1285 COMPARE_PREFIX(ldr(x10, 0x1234567890abcdefUL), "ldr x10, pc+8");
1268 COMPARE_PREFIX(ldr(w20, 0xfedcba09), "ldr w20, pc+8"); 1286 COMPARE_PREFIX(ldr(w20, 0xfedcba09), "ldr w20, pc+8");
1269 COMPARE_PREFIX(ldr(d11, 1.234), "ldr d11, pc+8"); 1287 COMPARE_PREFIX(ldr(d11, 1.234), "ldr d11, pc+8");
1270 COMPARE_PREFIX(ldr(s22, 2.5f), "ldr s22, pc+8"); 1288 COMPARE_PREFIX(ldr(s22, 2.5f), "ldr s22, pc+8");
1271 1289
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1752 COMPARE(Dsb(FullSystem, BarrierOther), "dsb sy (0b1100)"); 1770 COMPARE(Dsb(FullSystem, BarrierOther), "dsb sy (0b1100)");
1753 COMPARE(Dsb(InnerShareable, BarrierOther), "dsb sy (0b1000)"); 1771 COMPARE(Dsb(InnerShareable, BarrierOther), "dsb sy (0b1000)");
1754 COMPARE(Dsb(NonShareable, BarrierOther), "dsb sy (0b0100)"); 1772 COMPARE(Dsb(NonShareable, BarrierOther), "dsb sy (0b0100)");
1755 COMPARE(Dsb(OuterShareable, BarrierOther), "dsb sy (0b0000)"); 1773 COMPARE(Dsb(OuterShareable, BarrierOther), "dsb sy (0b0000)");
1756 1774
1757 // ISB 1775 // ISB
1758 COMPARE(Isb(), "isb"); 1776 COMPARE(Isb(), "isb");
1759 1777
1760 CLEANUP(); 1778 CLEANUP();
1761 } 1779 }
OLDNEW
« no previous file with comments | « src/arm64/simulator-arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698