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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for mqsrahi $FRi,#u6,$FRj
2
# mach: fr450
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global mqsrahi
9
mqsrahi:
10
        set_fr_iimmed   0x0001,0x0002,fr4
11
        set_fr_iimmed   0x0003,0x0004,fr5
12
        mqsrahi         fr4,#1,fr6
13
        test_fr_limmed  0x0000,0x0001,fr6
14
        test_fr_limmed  0x0001,0x0002,fr7
15
 
16
        set_fr_iimmed   0xffff,0xfffe,fr4
17
        set_fr_iimmed   0xfffc,0xfff8,fr5
18
        mqsrahi         fr4,#1,fr6
19
        test_fr_limmed  0xffff,0xffff,fr6
20
        test_fr_limmed  0xfffe,0xfffc,fr7
21
 
22
        set_fr_iimmed   0x8000,0xc000,fr4
23
        set_fr_iimmed   0xe000,0xf000,fr5
24
        mqsrahi         fr4,#12,fr6
25
        test_fr_limmed  0xfff8,0xfffc,fr6
26
        test_fr_limmed  0xfffe,0xffff,fr7
27
 
28
        set_fr_iimmed   0x1234,0x5678,fr4
29
        set_fr_iimmed   0x9abc,0xdef0,fr5
30
        mqsrahi         fr4,#12,fr6
31
        test_fr_limmed  0x0001,0x0005,fr6
32
        test_fr_limmed  0xfff9,0xfffd,fr7
33
 
34
        set_fr_iimmed   0x1234,0x5678,fr4
35
        set_fr_iimmed   0x9abc,0xdef0,fr5
36
        mqsrahi         fr4,#16,fr6
37
        test_fr_limmed  0x1234,0x5678,fr6
38
        test_fr_limmed  0x9abc,0xdef0,fr7
39
 
40
        pass

powered by: WebSVN 2.1.0

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