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

	.include "compact/testutils.inc"

	start

	.global rotr
rotr:
	mov #1, r1
	rotr r1
	bf wrong
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	rotr r1
	assert r1, #1
	rotr r1
	rotr r1
	rotr r1

okay:	
	pass

wrong:
	fail