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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [sthiq.cgs] - Blame information for rev 373

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

Line No. Rev Author Line
1 330 jeremybenn
# sh testcase for sthi.q $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
sthiq1:
31
        sthi.q r0, 0, r1
32
 
33
sthiq2:
34
        sthi.q r0, 1, r1
35
 
36
sthiq3:
37
        sthi.q r0, 2, r1
38
 
39
sthiq4:
40
        sthi.q r0, 3, r1
41
 
42
sthiq5:
43
        sthi.q r0, 4, r1
44
 
45
sthiq6:
46
        sthi.q r0, 5, r1
47
 
48
sthiq7:
49
        sthi.q r0, 6, r1
50
 
51
sthiq8:
52
        sthi.q r0, 7, r1
53
 
54
sthiq9:
55
        sthi.q r0, -1, r1
56
 
57
sthiq10:
58
        sthi.q r0, -2, r1
59
 
60
sthiq11:
61
        sthi.q r0, -3, r1
62
 
63
sthiq12:
64
        sthi.q r0, -4, r1
65
 
66
sthiq13:
67
        sthi.q r0, -5, r1
68
 
69
sthiq14:
70
        sthi.q r0, -6, r1
71
 
72
sthiq15:
73
        sthi.q r0, -7, r1
74
 
75
okay:
76
        pass
77
 
78
wrong:
79
        fail

powered by: WebSVN 2.1.0

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