symbian-qemu-0.9.1-12/qemu-symbian-svp/tests/cris/check_scc.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: crisv0 crisv3 crisv8 crisv10 crisv32
# output: 1\n0\n1\n0\n1\n0\n1\n0\n0\n1\n1\n0\n1\n0\n1\n0\n1\n0\n0\n1\n0\n1\n1\n0\n1\n0\n0\n1\n1\n0\n1\n1\n0\n

 .include "testutils.inc"

 .macro lcheckr3 v
	move	 $ccs, $r9
	checkr3 \v
	move	$r9, $ccs
 .endm

 start
 clearf nzvc
 scc r3
 lcheckr3 1
 scs r3
 lcheckr3 0
 sne r3
 lcheckr3 1
 seq r3
 lcheckr3 0
 svc r3
 lcheckr3 1
 svs r3
 lcheckr3 0
 spl r3
 lcheckr3 1
 smi r3
 lcheckr3 0
 sls r3
 lcheckr3 0
 shi r3
 lcheckr3 1
 sge r3
 lcheckr3 1
 slt r3
 lcheckr3 0
 sgt r3
 lcheckr3 1
 sle r3
 lcheckr3 0
 sa r3
 lcheckr3 1
 setf nzvc
 scc r3
 lcheckr3 0
 scs r3
 lcheckr3 1
 sne r3
 lcheckr3 0
 svc r3
 lcheckr3 0
 svs r3
 lcheckr3 1
 spl r3
 lcheckr3 0
 smi r3
 lcheckr3 1
 sls r3
 lcheckr3 1
 shi r3
 lcheckr3 0
 sge r3
 lcheckr3 1
 slt r3
 lcheckr3 0
 sgt r3
 lcheckr3 0
 sle r3
 lcheckr3 1
 sa r3
 lcheckr3 1
 clearf n
 sge r3
 lcheckr3 0
 slt r3
 lcheckr3 1

 .if 1 ;..asm.arch.cris.v32
 setf p
 ssb r3
 .else
 moveq 1,r3
 .endif
 lcheckr3 1

 .if 1 ;..asm.arch.cris.v32
 clearf p
 ssb r3
 .else
 moveq 0,r3
 .endif
 lcheckr3 0

 quit