summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/fr30/ldi32.cgs
blob: 3e56db741e350311e2b466ca0f706e8f6be0d26f (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
# fr30 testcase for ldi32 $i32,$Ri
# mach(): fr30

	.include "testutils.inc"

	START

	.text
	.global ldi32
ldi32:
	; Test ldi32 $i32,$Ri
	set_cc          0x0f		; condition codes should not change
	ldi32		#0x00000000,r7
	test_cc		1 1 1 1
	test_h_gr  	0,r7

	set_cc          0x07		; condition codes should not change
	ldi:32		1,r7
	test_cc		0 1 1 1
	test_h_gr  	1,r7

	set_cc          0x0b		; condition codes should not change
	ldi32		0x7fffffff,r7
	test_cc		1 0 1 1
	test_h_gr  	0x7fffffff,r7

	set_cc          0x0d		; condition codes should not change
	ldi:32		0x80000000,r7
	test_cc		1 1 0 1
	test_h_gr  	0x80000000,r7

	set_cc          0x0e		; condition codes should not change
	ldi32		0xffffffff,r7
	test_cc		1 1 1 0
	test_h_gr  	-1,r7

	pass