diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-06-23 20:31:48 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-06-23 20:32:06 -0700 |
commit | 2c0d91be6c8972f325b64a15c798f45e68bf183a (patch) | |
tree | f77c0d7fcb6a80f8483d1fa4d0dd0df0b88d68d6 /deps/v8/test/cctest/test-disasm-arm.cc | |
parent | ba792ea2020f38ebf84925e740b42823b739d0d3 (diff) | |
download | node-new-2c0d91be6c8972f325b64a15c798f45e68bf183a.tar.gz |
Upgrade V8 to 2.2.19
Diffstat (limited to 'deps/v8/test/cctest/test-disasm-arm.cc')
-rw-r--r-- | deps/v8/test/cctest/test-disasm-arm.cc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/deps/v8/test/cctest/test-disasm-arm.cc b/deps/v8/test/cctest/test-disasm-arm.cc index b54fc2ef79..5903fe650b 100644 --- a/deps/v8/test/cctest/test-disasm-arm.cc +++ b/deps/v8/test/cctest/test-disasm-arm.cc @@ -269,6 +269,33 @@ TEST(Type0) { COMPARE(mvn(r6, Operand(-1), LeaveCC, ne), "13a06000 movne r6, #0"); + // mov -> movw. + if (CpuFeatures::IsSupported(ARMv7)) { + COMPARE(mov(r5, Operand(0x01234), LeaveCC, ne), + "13015234 movwne r5, #4660"); + // We only disassemble one instruction so the eor instruction is not here. + COMPARE(eor(r5, r4, Operand(0x1234), LeaveCC, ne), + "1301c234 movwne ip, #4660"); + // Movw can't do setcc so we don't get that here. Mov immediate with setcc + // is pretty strange anyway. + COMPARE(mov(r5, Operand(0x01234), SetCC, ne), + "159fc000 ldrne ip, [pc, #+0]"); + // We only disassemble one instruction so the eor instruction is not here. + // The eor does the setcc so we get a movw here. + COMPARE(eor(r5, r4, Operand(0x1234), SetCC, ne), + "1301c234 movwne ip, #4660"); + + COMPARE(movt(r5, 0x4321, ne), + "13445321 movtne r5, #17185"); + COMPARE(movw(r5, 0xabcd, eq), + "030a5bcd movweq r5, #43981"); + } + + // Eor doesn't have an eor-negative variant, but we can do an mvn followed by + // an eor to get the same effect. + COMPARE(eor(r5, r4, Operand(0xffffff34), SetCC, ne), + "13e0c0cb mvnne ip, #203"); + // and <-> bic. COMPARE(and_(r3, r5, Operand(0xfc03ffff)), "e3c537ff bic r3, r5, #66846720"); |