OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [frv/] [clrgr.cgs] - Blame information for rev 24

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

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for clrgr $GRk
2
# mach: frv
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global clrgr
9
clrgr:
10
        nldi            @(sp,0),gr20    ; Activate gr20 with nesr.fr==0
11
        or_spr_immed    0x00100000,gner1
12
        nldfi           @(sp,0),fr20    ; Activate fr20 with nesr.fr==1
13
        or_spr_immed    0x00200000,gner1
14
        nldi            @(sp,0),gr52    ; Activate gr52 with nesr.fr==0
15
        or_spr_immed    0x00100000,gner0
16
 
17
        clrgr           gr20
18
        test_spr_immed  0x00200000,gner1
19
        test_spr_immed  0x00100000,gner0
20
        test_spr_immed  0,nesr0
21
        test_spr_immed  0,neear0
22
        test_spr_immed  0xd4800401,nesr1
23
        test_spr_gr     neear1,sp
24
        test_spr_immed  0xb4800801,nesr2
25
        test_spr_gr     neear2,sp
26
 
27
        pass

powered by: WebSVN 2.1.0

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