summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/m32r/rach.cgs
blob: c22469834f7a56668d11b3e54c4a745d6a38eee4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# m32r testcase for rach
# mach(): m32r m32rx

	.include "testutils.inc"

	start

	.global rach
rach:
	mvi_h_accum0 1, 0x40004001
	rach
	test_h_accum0 3, 0

	mvi_h_accum0 0x3fff, 0xc0000000
	rach
	test_h_accum0 0x7fff, 0

	mvi_h_accum0 0xffff8000, 0
	rach
	test_h_accum0 0xffff8000, 0

	pass