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/] [ori.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 or #$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 ori
11
ori:
12
        mov #1, r0
13
        rotr r0
14
        or #1, r0
15
 
16
        mov #1, r7
17
        rotr r7
18
        add #1, r7
19
        cmp/eq r0, r7
20
        bf wrong
21
 
22
        .global ori2
23
ori2:
24
        mov #85, r0
25
        shll16 r0
26
        shll8 r0
27
        or #85, r0
28
 
29
        mov #85, r7
30
        shll16 r7
31
        shll8 r7
32
        add #85, r7
33
        cmp/eq r0, r7
34
        bf wrong
35
 
36
okay:
37
        pass
38
 
39
wrong:
40
        fail

powered by: WebSVN 2.1.0

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