daily update
[external/binutils.git] / sim / testsuite / sim / sh64 / compact / lds-mach.cgs
1 # sh testcase for lds $rn, mach
2 # mach: all
3 # as: -isa=shcompact
4 # ld: -m shelf32
5
6         .include "compact/testutils.inc"
7
8         start
9
10         .global lds_mach
11 lds_mach:
12         mov #41, r0
13         shll8 r0
14         lds r0, mach
15 readback:
16         sts mach, r1
17         cmp/eq r0, r1
18         bf wrong
19
20 okay:
21         pass
22 wrong:
23         fail