include/
[external/binutils.git] / sim / testsuite / sim / sh64 / compact / movb1.cgs
1 # sh testcase for mov.b $rm, @$rn -*- Asm -*-
2 # mach: all
3 # as: -isa=shcompact
4 # ld: -m shelf32
5
6         .include "compact/testutils.inc"
7
8         start
9         mov #55, r1
10         mov #40, r2
11         shll8 r2
12         mov.b r1, @r2
13
14         # Load it back into r3.
15         mov #40, r2
16         shll8 r2
17         mov.b @r2, r3
18
19         # Make sure r1 and r3 match.
20         cmp/eq r1, r3
21         bf wrong
22
23 okay:   
24         pass
25
26 wrong:
27         fail