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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [sub.cgs] - Blame information for rev 828

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

Line No. Rev Author Line
1 227 jeremybenn
# sh testcase for sub $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
init:
11
        pta wrong, tr0
12
        movi 0, r0
13
        movi 1, r1
14
 
15
sub1:
16
        # 0 - 0 = 0.
17
        sub r0, r0, r2
18
        bnei r2, 0, tr0
19
 
20
sub2:
21
        # 1 - 0 = 1.
22
        sub r1, r0, r2
23
        bnei r2, 1, tr0
24
 
25
sub3:
26
        # 0 - 1 = -1.
27
        sub r0, r1, r2
28
        addi r2, 1, r2
29
        bnei r2, 0, tr0
30
 
31
sub4:
32
        # 5 - 2 = 3.
33
        movi 5, r0
34
        movi 2, r1
35
        sub r0, r1, r2
36
        bnei r2, 3, tr0
37
 
38
okay:
39
        pass
40
 
41
wrong:
42
        fail

powered by: WebSVN 2.1.0

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