]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/testsuite/sim/cr16/addi.cgs
This commit was manufactured by cvs2svn to create branch 'gdb_7_0-branch'.
[thirdparty/binutils-gdb.git] / sim / testsuite / sim / cr16 / addi.cgs
CommitLineData
fae9ec8d 1# cr16 testcase for addi $imm8, $dr
49b964e7
SR
2# mach(): cr16
3
4 .include "testutils.inc"
5
6 start
7
8 .global addi
9addi:
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
29not_ok:
30 fail