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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [sim/] [testsuite/] [sim/] [cr16/] [sbitb.cgs] - Blame information for rev 816

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

Line No. Rev Author Line
1 330 jeremybenn
# cr16 testcase for sbitb $count, reg/regp/mem
2
# mach:  cr16
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global sbitb
9
sbitb:
10
        sbitb   $0,_y
11
        loadw   _y, r1
12
        cmpb    $0xf1, r1
13
        beq ok1
14
not_ok:
15
        fail
16
 
17
ok1:
18
        movd   $_y, (r1,r0)
19
        sbitb   $1,0(r1,r0)
20
        loadw   _y, r1
21
        cmpb    $0xf3, r1
22
        beq ok2
23
        br not_ok
24
ok2:
25
 
26
        movw   $_y, r1
27
        sbitb   $2,0(r1)
28
        loadw   _y, r1
29
        cmpb    $0xf7, r1
30
        beq ok3
31
        br not_ok
32
ok3:
33
        pass
34
 
35
_y:     .word   0xf0

powered by: WebSVN 2.1.0

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