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/] [media/] [addil.cgs] - Blame information for rev 157

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for addi.l $rm, $disp10, $rd -*- Asm -*-
2
# mach: all
3
# as: -isa=shmedia
4
# ld: -m shelf64
5
 
6
        .include "media/testutils.inc"
7
 
8
        start
9
 
10
init:
11
        pta wrong, tr0
12
 
13
addil0:
14
        movi 1, r63
15
        addi.l r63, 0, r1
16
        bnei r1, 0, tr0
17
 
18
addil1:
19
        movi 10, r0
20
        addi.l r0, 0, r3
21
        bnei r3, 10, tr0
22
 
23
addil2:
24
        movi 0, r0
25
        addi.l r0, 10, r2
26
        bnei r2, 10, tr0
27
 
28
addil3:
29
        addi.l r63, 10, r1
30
        bnei r1, 10, tr0
31
 
32
addil4:
33
        movi 10, r0
34
        addi.l r0, 0, r1
35
        bnei r1, 10, tr0
36
 
37
addil5:
38
        # Ensure top 32-bits are discarded when adding.
39
        movi 10, r0
40
        shlli r0, 32, r0
41
        addi r0, 10, r0
42
        addi.l r0, 10, r2
43
        bnei r2, 20, tr0
44
 
45
okay:
46
        pass
47
 
48
wrong:
49
        fail

powered by: WebSVN 2.1.0

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