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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gdb/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [arm/] [xscale/] [mra.cgs] - Blame information for rev 26

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 26 jlechner
# XScale testcase for MAR and MRA
2
# mach: xscale
3
# as: -mcpu=xscale
4
 
5
        .include "testutils.inc"
6
 
7
        start
8
 
9
        .global mar_mra
10
mar_mra:
11
        mvi_h_gr   r2,0
12
        mvi_h_gr   r3,0
13
        mvi_h_gr   r4,0x0000EFA0
14
        mvi_h_gr   r5,0xA0A0A0A0
15
 
16
        # Enable access to CoProcessors 0 & 1 before
17
        # we attempt these instructions.
18
 
19
        mvi_h_gr   r1, 3
20
        mcr        p15, 0, r1, cr15, cr1, 0
21
 
22
        mar        acc0, r5, r4
23
        mra        r2, r3, acc0
24
 
25
        test_h_gr  r2,0xA0A0A0A0
26
        test_h_gr  r3,0x0000EFA0
27
        test_h_gr  r4,0x0000EFA0
28
        test_h_gr  r5,0xA0A0A0A0
29
 
30
        pass

powered by: WebSVN 2.1.0

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