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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh64/] [compact/] [xori.cgs] - Blame information for rev 827

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

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for xor #$imm8, r0 -*- Asm -*-
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
 
6
        .include "compact/testutils.inc"
7
 
8
        start
9
 
10
        .global xori
11
xori:
12
        # 0 (+) 1 = 1.
13
        mov #0, r0
14
        xor #1, r0
15
        assert r0, #1
16
 
17
xori2:
18
        # 1 (+) 0 = 1.
19
        mov #1, r0
20
        xor #0, r0
21
        assert r0, #1
22
 
23
xori3:
24
        # 1 (+) 1 = 0.
25
        mov #1, r0
26
        xor #1, r0
27
        assert r0, #0
28
 
29
xori4:
30
        # 255 (+) 255 = 0.
31
        mov #0, r0
32
        or #255, r0
33
        xor #255, r0
34
        assert r0, #0
35
 
36
xori5:
37
        # 0 (+) 255 = 255.
38
        mov #0, r0
39
        xor #255, r0
40
        mov r0, r1
41
 
42
        mov #0, r0
43
        or #255, r0
44
        cmp/eq r0, r1
45
        bf wrong
46
 
47
okay:
48
        pass
49
wrong:
50
        fail

powered by: WebSVN 2.1.0

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