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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [ori.cgs] - Blame information for rev 828

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

Line No. Rev Author Line
1 227 jeremybenn
# sh testcase for ori $rm, $imm10, $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
        ori r0, 0, r1
15
        bnei r1, 0, tr0
16
 
17
or2:
18
        movi 0, r0
19
        ori r0, 1, r2
20
        bnei r2, 1, tr0
21
 
22
or3:
23
        movi 1, r0
24
        ori r0, 0, r2
25
        bnei r2, 1, tr0
26
 
27
or4:
28
        movi 1, r0
29
        ori r0, 1, r1
30
        bnei r1, 1, tr0
31
 
32
or5:
33
        movi 1, r0
34
        shlli r0, 63, r0
35
        ori r0, 1, r2
36
 
37
okay:
38
        pass
39
 
40
wrong:
41
        fail

powered by: WebSVN 2.1.0

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