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/] [and.cgs] - Blame information for rev 437

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

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for and $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 and
11
and:
12
        mov #1, r1
13
        mov #7, r2
14
        rotr r2
15
        rotr r2
16
        and r1, r2
17
 
18
        # R1 & R2 = 1.
19
        assert r2, #1
20
 
21
another:
22
        mov #192, r1
23
        mov #0, r2
24
        and r1, r2
25
 
26
        # R1 & R2 = 0.
27
        assert r2, #0
28
 
29
okay:
30
        pass
31
 
32
wrong:
33
        fail

powered by: WebSVN 2.1.0

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