summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/fr30/orccr.cgs
blob: 3bc55a845705efe1dd8be4fd5befe24613cca32a (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
# fr30 testcase for orccr $u8
# mach(): fr30

	.include "testutils.inc"

	START

	.text
	.global orccr
orccr:
	orccr      	0xff
	test_cc		1 1 1 1
	test_i		1
	test_s_user

	set_cc	0x0f
	orccr      	0x00
	test_cc		1 1 1 1
	test_i		1
	test_s_user

	set_cc		0x00
	set_i			0
	set_s_system
	orccr      	0xaa
	test_cc		1 0 1 0
	test_i		0
	test_s_user

	set_cc		0x00
	set_i			0
	set_s_system
	orccr      	0xc0
	test_cc		0 0 0 0
	test_i		0
	test_s_system

	pass