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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [cmpeq.cgs] - Blame information for rev 840

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for cmpeq $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
        movi 2, r2
15
        movi 2, r3
16
        movi 3, r4
17
 
18
cmpeq1:
19
        cmpeq r2, r2, r7
20
        bne r7, r1, tr0
21
 
22
cmpeq2:
23
        cmpeq r2, r3, r7
24
        bne r7, r1, tr0
25
 
26
cmpeq3:
27
        cmpeq r2, r4, r7
28
        bne r7, r0, tr0
29
 
30
cmpeq4:
31
        movi 1, r2
32
        shlli r2, 63, r2
33
        movi 1, r3
34
        shlli r3, 63, r3
35
        cmpeq r2, r3, r7
36
        bne r7, r1, 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.