]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/testsuite/sim/fr30/div3.cgs
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / sim / testsuite / sim / fr30 / div3.cgs
1 # fr30 testcase for div3
2 # mach(): fr30
3
4 .include "testutils.inc"
5
6 START
7
8 .text
9 .global div3
10 div3:
11 ; Test div3
12 ; example from the manual
13 mvi_h_gr 0x00ffffff,r2
14 mvi_h_dr 0x00000000,mdh
15 mvi_h_dr 0x0000000f,mdl
16 set_dbits 0x0
17 set_cc 0x04
18 div3
19 test_cc 0 1 0 0
20 test_dbits 0x0
21 test_h_gr 0x00ffffff,r2
22 test_h_dr 0x00000000,mdh
23 test_h_dr 0x00000010,mdl
24
25 set_dbits 0x0
26 set_cc 0x00
27 div3
28 test_cc 0 0 0 0
29 test_dbits 0x0
30 test_h_gr 0x00ffffff,r2
31 test_h_dr 0x00000000,mdh
32 test_h_dr 0x00000010,mdl
33
34 pass