symbian-qemu-0.9.1-12/qemu-symbian-svp/tests/cris/check_movemr.s
author Gareth Stockwell <gareth.stockwell@accenture.com>
Mon, 06 Sep 2010 16:25:43 +0100
changeset 107 3bc1a978be44
parent 1 2fb8b9db1c86
permissions -rw-r--r--
Fix for Bug 3671 - QEMU GDB stub listens on IPv6-only port on Windows 7 The connection string used by the GDB stub does not specify which version of the Internet Protocol should be used by the port on which it listens. On host platforms with IPv6 support, such as Windows 7, this means that the stub listens on an IPv6-only port. Since the GDB client uses IPv4, this means that the client cannot connect to QEMU.

# mach: crisv3 crisv8 crisv10 crisv32
# output: 12345678\n10234567\n12345678\n12344567\n12344523\n76543210\nffffffaa\naa\n9911\nffff9911\n78\n56\n3456\n6712\n

 .include "testutils.inc"
 start

 .data
mem1:
 .dword 0x12345678
mem2:
 .word 0x4567
mem3:
 .byte 0x23
 .dword 0x76543210
 .byte 0xaa,0x11,0x99

 .text
 move.d mem1,r2
 move.d [r2],r3
 test_move_cc 0 0 0 0
 checkr3 12345678

 move.d mem2,r3
 move.d [r3],r3
 test_move_cc 0 0 0 0
 checkr3 10234567

 move.d mem1,r2
 move.d [r2+],r3
 test_move_cc 0 0 0 0
 checkr3 12345678

 move.w [r2+],r3
 test_move_cc 0 0 0 0
 checkr3 12344567

 move.b [r2+],r3
 test_move_cc 0 0 0 0
 checkr3 12344523

 move.d [r2+],r3
 test_move_cc 0 0 0 0
 checkr3 76543210

 movs.b [r2],r3
 test_move_cc 1 0 0 0
 checkr3 ffffffaa

 movu.b [r2+],r3
 test_move_cc 0 0 0 0
 checkr3 aa

 movu.w [r2],r3
 test_move_cc 0 0 0 0
 checkr3 9911

 movs.w [r2+],r3
 test_move_cc 1 0 0 0
 checkr3 ffff9911

 move.d mem1,r13
 movs.b [r13+],r3
 test_move_cc 0 0 0 0
 checkr3 78

 movu.b [r13],r3
 test_move_cc 0 0 0 0
 checkr3 56

 movs.w [r13+],r3
 test_move_cc 0 0 0 0
 checkr3 3456

 movu.w [r13+],r3
 test_move_cc 0 0 0 0
 checkr3 6712

 quit