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/] [or.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 or $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
init:
10
        pta wrong, tr0
11
 
12
or1:
13
        movi 0, r0
14
        or r0, r0, r1
15
        bnei r1, 0, tr0
16
 
17
or2:
18
        movi 0, r0
19
        movi 1, r1
20
        or r0, r1, r2
21
        bnei r2, 1, tr0
22
 
23
or3:
24
        movi 1, r0
25
        movi 0, r1
26
        or r0, r1, r2
27
        bnei r2, 1, tr0
28
 
29
or4:
30
        movi 1, r0
31
        or r0, r0, r1
32
        bnei r1, 1, tr0
33
 
34
or5:
35
        movi 1, r0
36
        shlli r0, 63, r0
37
        movi 1, r1
38
        or r0, r1, r2
39
 
40
okay:
41
        pass
42
 
43
wrong:
44
        fail

powered by: WebSVN 2.1.0

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