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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh64/] [compact/] [andi.cgs] - Blame information for rev 280

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

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

powered by: WebSVN 2.1.0

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