OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [beqi.cgs] - Blame information for rev 280

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# 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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.