OLD | NEW |
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 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1242 COMPARE(ldpsw(x3, x4, MemOperand(x5, 16)), "ldpsw x3, x4, [x5, #16]"); | 1242 COMPARE(ldpsw(x3, x4, MemOperand(x5, 16)), "ldpsw x3, x4, [x5, #16]"); |
1243 COMPARE(ldpsw(x6, x7, MemOperand(x8, -32, PreIndex)), | 1243 COMPARE(ldpsw(x6, x7, MemOperand(x8, -32, PreIndex)), |
1244 "ldpsw x6, x7, [x8, #-32]!"); | 1244 "ldpsw x6, x7, [x8, #-32]!"); |
1245 COMPARE(ldpsw(x9, x10, MemOperand(x11, 128, PostIndex)), | 1245 COMPARE(ldpsw(x9, x10, MemOperand(x11, 128, PostIndex)), |
1246 "ldpsw x9, x10, [x11], #128"); | 1246 "ldpsw x9, x10, [x11], #128"); |
1247 | 1247 |
1248 CLEANUP(); | 1248 CLEANUP(); |
1249 } | 1249 } |
1250 | 1250 |
1251 | 1251 |
1252 TEST_(load_store_pair_nontemp) { | |
1253 SET_UP(); | |
1254 | |
1255 COMPARE(ldnp(w0, w1, MemOperand(x2)), "ldnp w0, w1, [x2]"); | |
1256 COMPARE(stnp(w3, w4, MemOperand(x5, 252)), "stnp w3, w4, [x5, #252]"); | |
1257 COMPARE(ldnp(w6, w7, MemOperand(x8, -256)), "ldnp w6, w7, [x8, #-256]"); | |
1258 COMPARE(stnp(x9, x10, MemOperand(x11)), "stnp x9, x10, [x11]"); | |
1259 COMPARE(ldnp(x12, x13, MemOperand(x14, 504)), "ldnp x12, x13, [x14, #504]"); | |
1260 COMPARE(stnp(x15, x16, MemOperand(x17, -512)), "stnp x15, x16, [x17, #-512]"); | |
1261 COMPARE(ldnp(s18, s19, MemOperand(x20)), "ldnp s18, s19, [x20]"); | |
1262 COMPARE(stnp(s21, s22, MemOperand(x23, 252)), "stnp s21, s22, [x23, #252]"); | |
1263 COMPARE(ldnp(s24, s25, MemOperand(x26, -256)), "ldnp s24, s25, [x26, #-256]"); | |
1264 COMPARE(stnp(d27, d28, MemOperand(fp)), "stnp d27, d28, [fp]"); | |
1265 COMPARE(ldnp(d30, d31, MemOperand(x0, 504)), "ldnp d30, d31, [x0, #504]"); | |
1266 COMPARE(stnp(d1, d2, MemOperand(x3, -512)), "stnp d1, d2, [x3, #-512]"); | |
1267 | |
1268 CLEANUP(); | |
1269 } | |
1270 | |
1271 #if 0 // TODO(all): enable. | 1252 #if 0 // TODO(all): enable. |
1272 TEST_(load_literal) { | 1253 TEST_(load_literal) { |
1273 SET_UP(); | 1254 SET_UP(); |
1274 | 1255 |
1275 COMPARE_PREFIX(ldr(x10, 0x1234567890abcdefUL), "ldr x10, pc+8"); | 1256 COMPARE_PREFIX(ldr(x10, 0x1234567890abcdefUL), "ldr x10, pc+8"); |
1276 COMPARE_PREFIX(ldr(w20, 0xfedcba09), "ldr w20, pc+8"); | 1257 COMPARE_PREFIX(ldr(w20, 0xfedcba09), "ldr w20, pc+8"); |
1277 COMPARE_PREFIX(ldr(d11, 1.234), "ldr d11, pc+8"); | 1258 COMPARE_PREFIX(ldr(d11, 1.234), "ldr d11, pc+8"); |
1278 COMPARE_PREFIX(ldr(s22, 2.5f), "ldr s22, pc+8"); | 1259 COMPARE_PREFIX(ldr(s22, 2.5f), "ldr s22, pc+8"); |
1279 | 1260 |
1280 CLEANUP(); | 1261 CLEANUP(); |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1760 COMPARE(Dsb(FullSystem, BarrierOther), "dsb sy (0b1100)"); | 1741 COMPARE(Dsb(FullSystem, BarrierOther), "dsb sy (0b1100)"); |
1761 COMPARE(Dsb(InnerShareable, BarrierOther), "dsb sy (0b1000)"); | 1742 COMPARE(Dsb(InnerShareable, BarrierOther), "dsb sy (0b1000)"); |
1762 COMPARE(Dsb(NonShareable, BarrierOther), "dsb sy (0b0100)"); | 1743 COMPARE(Dsb(NonShareable, BarrierOther), "dsb sy (0b0100)"); |
1763 COMPARE(Dsb(OuterShareable, BarrierOther), "dsb sy (0b0000)"); | 1744 COMPARE(Dsb(OuterShareable, BarrierOther), "dsb sy (0b0000)"); |
1764 | 1745 |
1765 // ISB | 1746 // ISB |
1766 COMPARE(Isb(), "isb"); | 1747 COMPARE(Isb(), "isb"); |
1767 | 1748 |
1768 CLEANUP(); | 1749 CLEANUP(); |
1769 } | 1750 } |
OLD | NEW |