Statistics
| Branch: | Revision:

root / tests / tcg / cris / check_xarith.s @ c09015dd

History | View | Annotate | Download (782 Bytes)

1 dd43edf4 ths
2 dd43edf4 ths
.include "testutils.inc"
3 dd43edf4 ths
4 dd43edf4 ths
	start
5 dd43edf4 ths
6 dd43edf4 ths
	moveq	-1, $r0
7 dd43edf4 ths
	moveq	0, $r1
8 dd43edf4 ths
	addq	1, $r0
9 dd43edf4 ths
	ax
10 dd43edf4 ths
	addq	0, $r1
11 dd43edf4 ths
12 dd43edf4 ths
	move.d	$r0, $r3
13 dd43edf4 ths
	checkr3 0
14 dd43edf4 ths
	move.d	$r1, $r3
15 dd43edf4 ths
	checkr3 1
16 dd43edf4 ths
17 dd43edf4 ths
	move.d  0, $r0
18 dd43edf4 ths
	moveq	-1, $r1
19 dd43edf4 ths
	subq	1, $r0
20 dd43edf4 ths
	ax
21 dd43edf4 ths
	subq	0, $r1
22 dd43edf4 ths
23 dd43edf4 ths
	move.d	$r0, $r3
24 dd43edf4 ths
	checkr3 ffffffff
25 dd43edf4 ths
	move.d	$r1, $r3
26 dd43edf4 ths
	checkr3 fffffffe
27 dd43edf4 ths
28 dd43edf4 ths
29 dd43edf4 ths
	moveq	-1, $r0
30 dd43edf4 ths
	moveq	-1, $r1
31 dd43edf4 ths
	cmpq	-1, $r0
32 dd43edf4 ths
	ax
33 dd43edf4 ths
	cmpq	-1, $r1
34 dd43edf4 ths
	beq	1f
35 dd43edf4 ths
	nop
36 dd43edf4 ths
	fail
37 dd43edf4 ths
1:
38 dd43edf4 ths
	cmpq	0, $r0
39 dd43edf4 ths
	ax
40 dd43edf4 ths
	cmpq	-1, $r1
41 dd43edf4 ths
	bne	1f
42 dd43edf4 ths
	nop
43 dd43edf4 ths
	fail
44 dd43edf4 ths
1:
45 9012c2bf edgar_igl
46 9012c2bf edgar_igl
	;; test for broken X sequence, run it several times.
47 9012c2bf edgar_igl
	moveq	8, $r0
48 9012c2bf edgar_igl
1:
49 9012c2bf edgar_igl
	moveq	0, $r3
50 9012c2bf edgar_igl
	move.d	$r0, $r1
51 9012c2bf edgar_igl
	andq	1, $r1
52 9012c2bf edgar_igl
	lslq	4, $r1
53 9012c2bf edgar_igl
	moveq	1, $r2
54 9012c2bf edgar_igl
	or.d	$r1, $r2
55 9012c2bf edgar_igl
	ba	2f
56 9012c2bf edgar_igl
	move	$r2, $ccs
57 9012c2bf edgar_igl
2:
58 9012c2bf edgar_igl
	addq	0, $r3
59 9012c2bf edgar_igl
	move.d	$r0, $r4
60 9012c2bf edgar_igl
	move.d	$r1, $r5
61 9012c2bf edgar_igl
	move.d	$r2, $r6
62 9012c2bf edgar_igl
	move.d	$r3, $r7
63 9012c2bf edgar_igl
	lsrq	4, $r1
64 9012c2bf edgar_igl
	move.d	$r1, $r8
65 9012c2bf edgar_igl
	xor	$r1, $r3
66 9012c2bf edgar_igl
	checkr3	0
67 9012c2bf edgar_igl
	subq	1, $r0
68 9012c2bf edgar_igl
	bne	1b
69 9012c2bf edgar_igl
	nop
70 9012c2bf edgar_igl
71 dd43edf4 ths
	pass
72 dd43edf4 ths
	quit