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/] [compact/] [cmpeq.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 cmp/eq $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
zeroes:
11
        mov #0, r1
12
        mov #0, r2
13
        cmp/eq r1, r2
14
        bf wrong
15
 
16
zero1:
17
        mov #0, r1
18
        mov #1, r2
19
        cmp/eq r1, r2
20
        bt wrong
21
 
22
zero2:
23
        mov #0, r2
24
        mov #1, r1
25
        cmp/eq r2, r1
26
        bt wrong
27
 
28
equal:
29
        mov #192, r1
30
        mov #192, r2
31
        cmp/eq r1, r2
32
        bf wrong
33
 
34
noteq:
35
        mov #192, r1
36
        mov #193, r2
37
        cmp/eq r1, r2
38
        bt wrong
39
 
40
large:
41
        mov #1, r1
42
        rotr r1
43
        mov #1, r2
44
        rotr r2
45
        cmp/eq r1, r2
46
        bf wrong
47
 
48
okay:
49
        pass
50
 
51
wrong:
52
        fail

powered by: WebSVN 2.1.0

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