* Contribute Hitachi SH5 simulator.
[deliverable/binutils-gdb.git] / sim / testsuite / sim / sh64 / media / shori.cgs
1 # sh testcase for shori $imm16, $rd -*- 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 shori1:
14 movi 1, r0
15 shori 7, r0
16 # check it.
17 andi r0, 15, r7
18 bnei r7, 7, tr0
19 shlri r0, 16, r0
20 bnei r0, 1, tr0
21
22 shori2:
23 # Test for zero extension bug reported by
24 # Alexandre Oliva <aoliva@redhat.com>.
25 movi 0, r0
26 shori 65535, r0
27 # check it.
28 movi 0xffff, r1
29 bne r0, r1, tr0
30
31 okay:
32 pass
33
34 wrong:
35 fail
This page took 0.029887 seconds and 4 git commands to generate.