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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh64/] [compact/] [cmphs.cgs] - Blame information for rev 816

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

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for cmp/hs $rm, $rn -*- Asm -*-
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
 
6
        .include "compact/testutils.inc"
7
 
8
        start
9
 
10
zero:
11
        mov #0, r0
12
        mov #0, r0
13
        cmp/hs r0, r1
14
 
15
equal:
16
        mov #1, r0
17
        rotr r0
18
        add #3, r0
19
 
20
        mov #1, r1
21
        rotr r1
22
        add #3, r1
23
 
24
        cmp/hs r0, r1
25
 
26
gt:
27
        mov #10, r0
28
        mov #12, r1
29
        cmp/hs r0, r1
30
 
31
lt:
32
        mov #12, r0
33
        mov #10, r1
34
        cmp/hs r0, r1
35
 
36
gtneg:
37
        mov #1, r0
38
        rotr r0
39
        add #1, r0
40
 
41
        mov #1, r1
42
        rotr r1
43
        add #3, r1
44
 
45
        cmp/hs r0, r1
46
 
47
ltneg:
48
        mov #1, r0
49
        rotr r0
50
        add #3, r0
51
 
52
        mov #1, r1
53
        rotr r1
54
        add #1, r1
55
 
56
        cmp/hs r0, r1
57
 
58
okay:
59
        pass

powered by: WebSVN 2.1.0

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