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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [sim/] [testsuite/] [sim/] [cr16/] [addi.cgs] - Blame information for rev 330

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
# cr16 testcase for addi $imm8, $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.