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/] [sh64/] [media/] [mpermw.cgs] - Blame information for rev 280

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

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for mperm.w $rm, $rn, $rd -*- Asm -*-
2
# mach: all
3
# as: -isa=shmedia
4
# ld: -m shelf64
5
 
6
        .include "media/testutils.inc"
7
 
8
        start
9
init:
10
        pta wrong, tr0
11
        movi 27, r1
12
        movi 0x1020, r0
13
        shlli r0, 8, r0
14
        ori r0, 0x30, r0
15
        shlli r0, 8, r0
16
        ori r0, 0x40, r0
17
        shlli r0, 8, r0
18
        ori r0, 0x50, r0
19
        shlli r0, 8, r0
20
        ori r0, 0x60, r0
21
        shlli r0, 8, r0
22
        ori r0, 0x70, r0
23
        shlli r0, 8, r0
24
        ori r0, 0x80, r0
25
 
26
mpermw:
27
        mperm.w r0, r1, r2
28
 
29
check:
30
        # Expect 0x7080506030401020.
31
        movi 0x7080, r0
32
        shlli r0, 8, r0
33
        ori r0, 0x50, r0
34
        shlli r0, 8, r0
35
        ori r0, 0x60, r0
36
        shlli r0, 8, r0
37
        ori r0, 0x30, r0
38
        shlli r0, 8, r0
39
        ori r0, 0x40, r0
40
        shlli r0, 8, r0
41
        ori r0, 0x10, r0
42
        shlli r0, 8, r0
43
        ori r0, 0x20, r0
44
 
45
        bne r0, r2, tr0
46
 
47
okay:
48
        pass
49
 
50
wrong:
51
        fail

powered by: WebSVN 2.1.0

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