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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [sh64/] [compact/] [xor.cgs] - Blame information for rev 238

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

Line No. Rev Author Line
1 227 jeremybenn
# sh testcase for xor $rm64, $rn64 -*- Asm -*-
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
 
6
        .include "compact/testutils.inc"
7
 
8
        start
9
 
10
        .global xor
11
xor:
12
        # 0 (+) 1 = 1.
13
        mov #0, r0
14
        mov #1, r1
15
        xor r0, r1
16
        assert r1, #1
17
 
18
xor2:
19
        # 1 (+) 0 = 0.
20
        mov #1, r0
21
        mov #0, r1
22
        xor r0, r1
23
        assert r1, #1
24
 
25
xor3:
26
        # 0 (+) 0 = 0.
27
        mov #0, r0
28
        mov #0, r1
29
        xor r0, r1
30
        assert r1, #0
31
 
32
xor4:
33
        # 0 (+) 0 = 0.
34
        mov #0, r0
35
        xor r0, r0
36
        assert r0, #0
37
 
38
xor5:
39
        mov #0, r0
40
        or #85, r0
41
        shll16 r0
42
        or #170, r0
43
        mov r0, r1
44
        mov #0, r0
45
        or #85, r0
46
        shll16 r0
47
        or #170, r0
48
        xor r1, r0
49
        assert r0, #0
50
 
51
xor6:
52
        mov #0, r0
53
        or #85, r0
54
        shll16 r0
55
        or #170, r0
56
        mov r0, r1
57
        mov #0, r0
58
        or #85, r0
59
        shll16 r0
60
        or #12, r0
61
        xor r0, r1
62
        mov #0, r0
63
        or #166, r0
64
        cmp/eq r0, r1
65
        bf wrong
66
 
67
okay:
68
        pass
69
wrong:
70
        fail

powered by: WebSVN 2.1.0

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