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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [cr16/] [subi.cgs] - Blame information for rev 828

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

Line No. Rev Author Line
1 227 jeremybenn
# cr16 testcase for addi #$simm8, $dr
2
# mach(): cr16
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global addi
9
addi:
10
 
11
        movb $1, r4
12
        addb $2, r4
13
 
14
        cmpb $3,r4
15
        bne not_ok
16
 
17
        movw $0x1234, r5
18
        addw $0x1234, r5
19
        test_h_gr r5, 0x2468
20
 
21
        pass
22
 
23
        movd $0x12345678, (r5,r4)
24
        addd $0x12345678, (r5,r4)
25
        test_h_grp "(r5,r4)", 0x2468acf0
26
 
27
        pass
28
 
29
not_ok:
30
        fail

powered by: WebSVN 2.1.0

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