aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/frv/cmnot.cgs
blob: cc93c016e20071e62c08aff2fe2182a90186365c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# frv testcase for cmnot $FRintj,$FRintk,$CCi,$cond
# mach: all

	.include "testutils.inc"

	start

	.global cmnot
cmnot:
	set_spr_immed	0x1b1b,cccr

	set_fr_iimmed   0xaaaa,0xaaaa,fr7
	cmnot      	fr7,fr7,cc0,1
	test_fr_iimmed 	0x55555555,fr7

	set_fr_iimmed   0xdead,0xbeef,fr7
	cmnot      	fr7,fr7,cc4,1
	test_fr_iimmed 	0x21524110,fr7

	set_fr_iimmed   0xaaaa,0xaaaa,fr7
	cmnot      	fr7,fr7,cc1,0
	test_fr_iimmed 	0x55555555,fr7

	set_fr_iimmed   0xdead,0xbeef,fr7
	cmnot      	fr7,fr7,cc5,0
	test_fr_iimmed 	0x21524110,fr7

	set_fr_iimmed   0xaaaa,0xaaaa,fr7
	cmnot      	fr7,fr7,cc0,0
	test_fr_iimmed 	0xaaaaaaaa,fr7

	set_fr_iimmed   0xdead,0xbeef,fr7
	cmnot      	fr7,fr7,cc4,0
	test_fr_iimmed 	0xdeadbeef,fr7

	set_fr_iimmed   0xaaaa,0xaaaa,fr7
	cmnot      	fr7,fr7,cc1,1
	test_fr_iimmed 	0xaaaaaaaa,fr7

	set_fr_iimmed   0xdead,0xbeef,fr7
	cmnot      	fr7,fr7,cc5,1
	test_fr_iimmed 	0xdeadbeef,fr7

	set_fr_iimmed   0xaaaa,0xaaaa,fr7
	cmnot      	fr7,fr7,cc2,0
	test_fr_iimmed 	0xaaaaaaaa,fr7

	set_fr_iimmed   0xdead,0xbeef,fr7
	cmnot      	fr7,fr7,cc6,1
	test_fr_iimmed 	0xdeadbeef,fr7

	set_fr_iimmed   0xaaaa,0xaaaa,fr7
	cmnot      	fr7,fr7,cc3,0
	test_fr_iimmed 	0xaaaaaaaa,fr7

	set_fr_iimmed   0xdead,0xbeef,fr7
	cmnot      	fr7,fr7,cc7,1
	test_fr_iimmed 	0xdeadbeef,fr7

	pass