Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / clrga.cgs
blob9e9a9a9f1c889596495b171eae05d7a4e9bca49b
1 # frv testcase for clrga
2 # mach: frv
4         .include "testutils.inc"
6         start
8         .global clrga
9 clrga:
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
17         clrga
18         test_spr_immed  0x00000000,gner1
19         test_spr_immed  0x00000000,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  0,nesr2
25         test_spr_immed  0,neear2
27         pass