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

	.include "compact/testutils.inc"

	start

	.global shlr
shlr:
	mov #0, r0
	or #192, r0
	shlr r0
	shlr r0
	shlr r0
	shlr r0
	shlr r0
	shlr r0
	# Make sure a bit is shifted into T.
	shlr r0
	bf wrong
	# Ditto.
	shlr r0
	bf wrong
	shlr r0
	assert r0, #0

okay:	
	pass

wrong:
	fail