1# sh testcase for tst #$imm8, r0 -*- Asm -*-
2# mach: all
3# as: -isa=shcompact
4# ld: -m shelf32
5
6	.include "compact/testutils.inc"
7
8	start
9
10	.global tsti
11tsti:
12	mov #0, r0
13	tst #0, r0
14
15tsti2:
16	mov #0, r0
17	tst #1, r0
18
19tsti3:
20	mov #1, r0
21	tst #0, r0
22
23tsti4:
24	mov #1, r0
25	tst #1, r0
26
27tsti5:
28	mov #255, r0
29	tst #255, r0
30
31okay:
32	pass
33