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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [andi.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 andi $rm, $disp10, $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
 
13
andi0:
14
        # 0 and 0 is 0.
15
        movi 0, r0
16
        andi r0, 0, r2
17
        bnei r2, 0, tr0
18
 
19
and1:
20
        # 0 and 1 is 0.
21
        movi 0, r0
22
        andi r0, 1, r2
23
        bnei r2, 0, tr0
24
 
25
and2:
26
        # 1 and 0 is 0.
27
        movi 1, r0
28
        andi r0, 0, r2
29
        bnei r2, 0, tr0
30
 
31
and3:
32
        # 1 and 1 is 1.
33
        movi 1, r0
34
        andi r0, 1, r2
35
        bnei r2, 1, tr0
36
 
37
and4:
38
        movi 15, r0
39
        andi r0, 3, r2
40
        bnei r2, 3, tr0
41
 
42
okay:
43
        pass
44
 
45
wrong:
46
        fail

powered by: WebSVN 2.1.0

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