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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [frv/] [scani.cgs] - Blame information for rev 816

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

Line No. Rev Author Line
1 227 jeremybenn
# frv testcase for scani $GRi,$s12,$GRk
2
# mach: all
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global scani
9
scani:
10
        set_gr_limmed   0xffff,0xfeaa,gr7
11
        scani           gr7,0x2aa,gr9
12
        test_gr_immed   0,gr9
13
        test_gr_limmed  0xffff,0xfeaa,gr7
14
 
15
        set_gr_limmed   0xffff,0xfeaa,gr7
16
        scani           gr7,0x2ab,gr9
17
        test_gr_immed   0,gr9
18
        test_gr_limmed  0xffff,0xfeaa,gr7
19
 
20
        set_gr_limmed   0x0000,0x0155,gr7
21
        scani           gr7,0x2aa,gr9
22
        test_gr_immed   63,gr9
23
        test_gr_limmed  0x0000,0x0155,gr7
24
 
25
        set_gr_limmed   0x0000,0x0155,gr7
26
        scani           gr7,0x2ab,gr9
27
        test_gr_immed   63,gr9
28
        test_gr_limmed  0x0000,0x0155,gr7
29
 
30
        set_gr_limmed   0x7fff,0xffff,gr7
31
        scani           gr7,-1,gr9
32
        test_gr_immed   0,gr9
33
        test_gr_limmed  0x7fff,0xffff,gr7
34
 
35
        set_gr_limmed   0xbfff,0xffff,gr7
36
        scani           gr7,-1,gr9
37
        test_gr_immed   1,gr9
38
        test_gr_limmed  0xbfff,0xffff,gr7
39
 
40
        set_gr_limmed   0xfffe,0xffff,gr7
41
        scani           gr7,-1,gr9
42
        test_gr_immed   15,gr9
43
        test_gr_limmed  0xfffe,0xffff,gr7
44
 
45
        set_gr_limmed   0xffff,0xfffd,gr7
46
        scani           gr7,-1,gr9
47
        test_gr_immed   30,gr9
48
        test_gr_limmed  0xffff,0xfffd,gr7
49
 
50
        set_gr_limmed   0xdead,0xbeef,gr7
51
        scani           gr7,-2048,gr9
52
        test_gr_immed   2,gr9
53
        test_gr_limmed  0xdead,0xbeef,gr7
54
 
55
        pass

powered by: WebSVN 2.1.0

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