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/] [arm/] [xscale/] [miaxy.cgs] - Blame information for rev 225

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

Line No. Rev Author Line
1 24 jeremybenn
# XSCALE testcase for MIAxy
2
# mach: xscale
3
# as: -mcpu=xscale
4
 
5
        .include "testutils.inc"
6
 
7
        start
8
 
9
        .global miaXY
10
miaXY:
11
        # Enable access to CoProcessors 0 & 1 before
12
        # we attempt these instructions.
13
 
14
        mvi_h_gr   r1, 3
15
        mcr        p15, 0, r1, cr15, cr1, 0
16
 
17
        # Test Bottom Bottom Multilply Accumulate
18
 
19
        mvi_h_gr   r0, 0x11223344
20
        mvi_h_gr   r1, 0x55667788
21
        mvi_h_gr   r2, 0x12345678
22
        mvi_h_gr   r3, 0x9abcdef0
23
 
24
        mar        acc0, r0, r1
25
 
26
        miaBB      acc0, r2, r3
27
 
28
        mra        r0, r1, acc0
29
 
30
        test_h_gr  r0, 0x05f753c4
31
        test_h_gr  r1, 0x55667788
32
        test_h_gr  r2, 0x12345678
33
        test_h_gr  r3, 0x9abcdef0
34
 
35
        # Test Bottom Top Multilply Accumulate
36
 
37
        mvi_h_gr   r0, 0x11223344
38
        mvi_h_gr   r1, 0x55667788
39
        mvi_h_gr   r2, 0x12345678
40
        mvi_h_gr   r3, 0x9abcdef0
41
 
42
        mar        acc0, r0, r1
43
 
44
        miaBT      acc0, r2, r3
45
 
46
        mra        r0, r1, acc0
47
 
48
        test_h_gr  r0, 0xeeede364
49
        test_h_gr  r1, 0x55667787
50
        test_h_gr  r2, 0x12345678
51
        test_h_gr  r3, 0x9abcdef0
52
 
53
        # Test Top Bottom Multilply Accumulate
54
 
55
        mvi_h_gr   r0, 0x11223344
56
        mvi_h_gr   r1, 0x55667788
57
        mvi_h_gr   r2, 0x12345678
58
        mvi_h_gr   r3, 0x9abcdef0
59
 
60
        mar        acc0, r0, r1
61
 
62
        miaTB      acc0, r2, r3
63
 
64
        mra        r0, r1, acc0
65
 
66
        test_h_gr  r0, 0x0ec85c04
67
        test_h_gr  r1, 0x55667788
68
        test_h_gr  r2, 0x12345678
69
        test_h_gr  r3, 0x9abcdef0
70
 
71
        # Test Top Top Multilply Accumulate
72
 
73
        mvi_h_gr   r0, 0x11223344
74
        mvi_h_gr   r1, 0x55667788
75
        mvi_h_gr   r2, 0x12345678
76
        mvi_h_gr   r3, 0x9abcdef0
77
 
78
        mar        acc0, r0, r1
79
 
80
        miaTT      acc0, r2, r3
81
 
82
        mra        r0, r1, acc0
83
 
84
        test_h_gr  r0, 0x09eed974
85
        test_h_gr  r1, 0x55667788
86
        test_h_gr  r2, 0x12345678
87
        test_h_gr  r3, 0x9abcdef0
88
 
89
        pass

powered by: WebSVN 2.1.0

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