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/] [frv/] [mdrotli.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
# frv testcase for mdrotli $FRi,$s6,$FRk
2
# mach: fr400 fr550
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global mdrotli
9
mdrotli:
10
        set_fr_iimmed   0,2,fr8
11
        set_fr_iimmed   0,2,fr9
12
        mdrotli         fr8,-32,fr8     ; Shift by 0
13
        test_fr_iimmed  2,fr8
14
        test_fr_iimmed  2,fr9
15
 
16
        set_fr_iimmed   0,2,fr8
17
        set_fr_iimmed   0,2,fr9
18
        mdrotli         fr8,1,fr8       ; Shift by 1
19
        test_fr_iimmed  4,fr8
20
        test_fr_iimmed  4,fr9
21
 
22
        set_fr_iimmed   0,1,fr8
23
        set_fr_iimmed   0,2,fr9
24
        mdrotli         fr8,31,fr8      ; Shift by 31
25
        test_fr_iimmed  0x80000000,fr8
26
        test_fr_iimmed  1,fr9
27
 
28
        set_fr_iimmed   0xdead,0xbeef,fr8
29
        set_fr_iimmed   0xbeef,0xdead,fr9
30
        mdrotli         fr8,16,fr8
31
        test_fr_iimmed  0xbeefdead,fr8
32
        test_fr_iimmed  0xdeadbeef,fr9
33
 
34
        pass

powered by: WebSVN 2.1.0

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