Upload Tizen:Base source
[external/gdb.git] / sim / testsuite / sim / sh64 / compact / shll16.cgs
1 # sh testcase for shll16 $rn -*- Asm -*-
2 # mach: all
3 # as: -isa=shcompact
4 # ld: -m shelf32
5
6         .include "compact/testutils.inc"
7
8         start
9
10         .global shll16
11 shll16:
12         mov #108, r1
13         shll16 r1
14         shll16 r1
15         assert r1, #0
16
17 another:
18         mov #1, r1
19         shll16 r1
20         mov #1, r7
21         shll r7
22         shll r7
23         shll r7
24         shll r7
25         shll r7
26         shll r7
27         shll r7
28         shll r7
29         shll r7
30         shll r7
31         shll r7
32         shll r7
33         shll r7
34         shll r7
35         shll r7
36         shll r7
37         cmp/eq r1, r7
38         bf wrong
39                 
40 okay:
41         pass
42
43 wrong:
44         fail