No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gdb6 / sim / testsuite / d10v-elf / t-mac.s
blob364f61531d14e3c2be004e54a3ffd44d20e21cd4
1 .include "t-macros.i"
3 start
5 ;; clear FX
6 loadpsw2 0x8005
7 loadacc2 a1 0x7f 0xffff 0xffff
8 load r8 0xffff
9 load r9 0x8001
10 test_macu1:
11 MACU a1, r9, r8
12 checkacc2 1 a1 0x80 0x8000 0x7FFE
14 ;; set FX
15 loadpsw2 0x8085
16 loadacc2 a1 0x7f 0xffff 0xffff
17 load r8 0xffff
18 load r9 0x8001
19 test_macu2:
20 MACU a1, r9, r8
21 checkacc2 2 a1 0x81 0x0000 0xfffd
26 ;; clear FX
27 ldi r2, #0x8005
28 mvtc r2, cr0
30 loadacc2 a1 0x7f 0xffff 0xffff
31 ldi r8, #0xffff
32 ldi r9, #0x7FFF
33 test_macsu1:
34 MACSU a1, r9, r8
35 checkacc2 3 a1 0x80 0x7FFE 0x8000
37 ;; set FX
38 ldi r2, #0x8085
39 mvtc r2, cr0
41 loadacc2 a1 0x7f 0xffff 0xffff
42 ldi r8, #0xffff
43 ldi r9, #0x7FFF
44 test_macsu2:
45 MACSU a1, r9, r8
46 checkacc2 4 a1 0x80 0xfffd 0x0001
48 ;; clear FX
49 ldi r2, #0x8005
50 mvtc r2, cr0
52 loadacc2 a1 0x7f 0xffff 0xffff
53 ldi r8, 0xffff
54 ldi r9, 0x8001
55 test_macsu3:
56 MACSU a1, r9, r8
57 checkacc2 5 a1 0x7F 0x8001 0x7FFE
59 ;; set FX
60 ldi r2, #0x8085
61 mvtc r2, cr0
63 loadacc2 a1 0x7f 0xffff 0xffff
64 ldi r8, #0xffff
65 ldi r9, #0x8001
66 test_macsu4:
67 MACSU a1, r9, r8
68 checkacc2 6 a1 0x7f 0x0002 0xFFFD
70 exit0