Commit | Line | Data |
---|---|---|
cbb38b47 BE |
1 | # sh testcase for putcon $rm, $crj -*- Asm -*- |
2 | # mach: all | |
3 | # as: -isa=shmedia | |
4 | # ld: -m shelf64 | |
5 | ||
6 | .include "media/testutils.inc" | |
7 | ||
8 | start | |
9 | ||
10 | init: | |
11 | pta wrong, tr0 | |
12 | ||
13 | putcon1: | |
14 | movi 22, r0 | |
15 | putcon r0, cr0 | |
16 | getcon cr0, r1 | |
17 | bne r0, r1, tr0 | |
18 | ||
19 | putcon2: | |
20 | movi 12, r0 | |
21 | shlli r0, 35, r0 | |
22 | putcon r0, cr20 | |
23 | getcon cr20, r20 | |
24 | bne r0, r20, tr0 | |
25 | ||
26 | okay: | |
27 | pass | |
28 | ||
29 | wrong: | |
30 | fail |