]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/testsuite/sim/sh64/compact/extub.cgs
* Contribute Hitachi SH5 simulator.
[thirdparty/binutils-gdb.git] / sim / testsuite / sim / sh64 / compact / extub.cgs
1 # sh testcase for extu.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
10 .global extub
11 extub:
12 mov #42, r1
13 extu.b r1, r2
14 assert r2, #42
15
16 another:
17 mov #0, r0
18 or #255, r0
19 extu.b r0, r1
20
21 mov #0, r0
22 or #255, r0
23 cmp/eq r0, r1
24 bf wrong
25
26 okay:
27 pass
28
29 wrong:
30 fail
31