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

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

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for cmpgtu $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
cmpgt1:
19
        cmpgtu r2, r2, r7
20
        bne r7, r0, tr0
21
 
22
cmpgt2:
23
        cmpgtu r2, r3, r7
24
        bne r7, r0, tr0
25
 
26
cmpgt3:
27
        cmpgtu r4, r2, r7
28
        bne r7, r1, tr0
29
 
30
cmpgt4:
31
        movi 1, r2
32
        shlli r2, 63, r2
33
        movi 1, r3
34
        shlli r3, 63, r3
35
        addi r3, 1, r3
36
        cmpgtu r3, r2, r7
37
        bne r7, r1, tr0
38
 
39
okay:
40
        pass
41
 
42
wrong:
43
        fail

powered by: WebSVN 2.1.0

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