]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/testsuite/sim/sh64/media/beqi.cgs
* Contribute Hitachi SH5 simulator.
[thirdparty/binutils-gdb.git] / sim / testsuite / sim / sh64 / media / beqi.cgs
1 # sh testcase for beqi$likely $rm, $imm6, $tra -*- Asm -*-
2 # mach: all
3 # as: -isa=shmedia
4 # ld: -m shelf64
5
6 .include "media/testutils.inc"
7
8 start
9
10 .global beqi
11 init:
12 # Load up the branch target registers.
13 pta beqi2, tr0
14 pta beqi3, tr1
15 pta wrong, tr2
16
17 beqi1:
18 # Always true, so branch likely.
19 movi 1, r0
20 beqi/l r0, 1, tr0
21 # We should branch over this.
22 fail
23
24 beqi2:
25 movi 22, r3
26 beqi r3, 22, tr1
27 # We should branch over this.
28 fail
29
30 beqi3:
31 movi 27, r7
32 # We shouldn't branch here.
33 beqi/u r7, 23, tr2
34 # We should proceed to pass here.
35
36 okay:
37 pass
38
39 wrong:
40 fail