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/] [add.cgs] - Blame information for rev 157

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for add $rm, $rn, $rd -*- Asm -*-
2
# mach: all
3
# as: -isa=shmedia
4
# ld: -m shelf64
5
 
6
        .include "media/testutils.inc"
7
 
8
        start
9
 
10
        .global add
11
init:
12
        pta wrong, tr0
13
add:
14
        movi 10, r0
15
        movi 0, r1
16
        add r0, r1, r3
17
        movi 10, r4
18
        bne r3, r4, tr0
19
 
20
add0:
21
        movi 1, r63
22
        add r63, r63, r1
23
        bnei r1, 0, tr0
24
 
25
add2:
26
        movi 0, r0
27
        movi 10, r1
28
        add r0, r1, r3
29
        movi 10, r4
30
        bne r3, r4, tr0
31
 
32
add3:
33
        movi 10, r1
34
        add r63, r1, r3
35
        movi 10, r4
36
        bne r3, r4, tr0
37
 
38
add4:
39
        movi 10, r1
40
        add r1, r63, r3
41
        movi 10, r4
42
        bne r3, r4, tr0
43
 
44
okay:
45
        pass
46
wrong:
47
        fail

powered by: WebSVN 2.1.0

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