summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/sh64/compact/rotl.cgs
blob: e292de7e437a4bea92c2e5f0f554932aa1213fb2 (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
61
62
# sh testcase for rotl $rn -*- Asm -*-
# mach: all
# as: -isa=shcompact
# ld: -m shelf32

	.include "compact/testutils.inc"

	start

	.global rotl
rotl:
	mov #1, r1
	rotl r1
	assert r1, #2
	rotl r1
	assert r1, #4
	rotl r1
	assert r1, #8
	rotl r1
	assert r1, #16
	rotl r1
	assert r1, #32
	rotl r1
	assert r1, #64
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	rotl r1
	bf wrong
	assert r1, #1
	rotl r1
	rotl r1
	rotl r1
	assert r1, #8

okay:	
	pass

wrong:
	fail