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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [sthil.cgs] - Blame information for rev 840

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for sthi.l $rm, $disp6, $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
        movi 40, r0
14
        shlli r0, 8, r0
15
 
16
        movi 0x1020, r1
17
        shlli r1, 8, r1
18
        addi r1, 0x30, r1
19
        shlli r1, 8, r1
20
        addi r1, 0x40, r1
21
        shlli r1, 8, r1
22
        addi r1, 0x50, r1
23
        shlli r1, 8, r1
24
        addi r1, 0x60, r1
25
        shlli r1, 8, r1
26
        addi r1, 0x70, r1
27
        shlli r1, 8, r1
28
        addi r1, 0x80, r1
29
 
30
sthil1:
31
        sthi.l r0, 0, r1
32
 
33
sthil2:
34
        sthi.l r0, 1, r1
35
 
36
sthil3:
37
        sthi.l r0, 2, r1
38
 
39
sthil4:
40
        sthi.l r0, 3, r1
41
 
42
sthil5:
43
        sthi.l r0, -1, r1
44
 
45
sthil6:
46
        sthi.l r0, -2, r1
47
 
48
sthil7:
49
        sthi.l r0, -3, r1
50
 
51
okay:
52
        pass
53
 
54
wrong:
55
        fail

powered by: WebSVN 2.1.0

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