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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
# sh testcase for xori $rm, $imm6, $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
xori1:
13
        # 0 xor 0 = 0.
14
        movi 0, r0
15
        xori r0, 0, r2
16
        bnei r2, 0, tr0
17
 
18
xori2:
19
        # 0 xor 1 = 1.
20
        movi 0, r0
21
        xori r0, 1, r2
22
        bnei r2, 1, tr0
23
 
24
xori3:
25
        # 1 xor 0 = 1.
26
        movi 1, r0
27
        xori r0, 0, r2
28
        bnei r2, 1, tr0
29
 
30
xori4:
31
        # 1 xor 1 = 0.
32
        movi 1, r0
33
        xori r0, 1, r2
34
        bnei r2, 0, tr0
35
 
36
xori5:
37
        movi 1, r0
38
        shlli r0, 63, r0
39
        ori r0, 1, r0
40
        xori r0, 3, r2
41
        andi r2, 255, r2
42
        bnei r2, 2, tr0
43
 
44
okay:
45
        pass
46
 
47
wrong:
48
        fail

powered by: WebSVN 2.1.0

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