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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gdb/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh64/] [compact/] [not.cgs] - Blame information for rev 26

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 26 jlechner
# sh testcase for not $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 not
11
not:
12
        mov #0, r0
13
        or #192, r0
14
        not r0, r1
15
 
16
        mov #0, r0
17
        or #255, r0
18
        shll8 r0
19
        or #255, r0
20
        shll8 r0
21
        or #255, r0
22
        shll8 r0
23
        or #63, r0
24
 
25
        cmp/eq r0, r1
26
        bf wrong
27
 
28
ones:
29
        mov #0, r1
30
        not r1, r2
31
 
32
        mov #0, r0
33
        or #255, r0
34
        shll8 r0
35
        or #255, r0
36
        shll8 r0
37
        or #255, r0
38
        shll8 r0
39
        or #255, r0
40
        cmp/eq r0, r2
41
        bf wrong
42
 
43
okay:
44
        pass
45
 
46
wrong:
47
        fail

powered by: WebSVN 2.1.0

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