Commit | Line | Data |
---|---|---|
5e1f6430 HPN |
1 | # mach: crisv0 crisv3 crisv8 crisv10 |
2 | # output: 4455aa77\n4455aa77\nee19ccff\n88ccee19\nff22\n4455aa77\nff224455\n55aa77ff\n | |
3 | ||
4 | .include "testutils.inc" | |
5 | .data | |
6 | x: | |
7 | .dword 0x55aa77ff | |
8 | .dword 0xccff2244 | |
9 | .dword 0x88ccee19 | |
10 | .dword 0xb232765a | |
11 | ||
12 | start | |
13 | moveq -1,r0 | |
14 | moveq -1,r2 | |
15 | move.d x-32768,r5 | |
16 | move.d [r5+32769],r3 | |
17 | test_move_cc 0 0 0 0 | |
18 | dumpr3 ; 4455aa77 | |
19 | ||
20 | addu.w 32770,r5 | |
21 | bdap.w -1,r5 | |
22 | move.d [r0],r3 | |
23 | test_move_cc 0 0 0 0 | |
24 | dumpr3 ; 4455aa77 | |
25 | ||
26 | bdap.d 4,r5 | |
27 | move.d [r2+],r3 | |
28 | test_move_cc 1 0 0 0 | |
29 | dumpr3 ; ee19ccff | |
30 | ||
31 | bdap.b 2,r2 | |
32 | move.d [r3],r3 | |
33 | test_move_cc 1 0 0 0 | |
34 | dumpr3 ; 88ccee19 | |
35 | ||
36 | bdap.b 3,r5 | |
37 | movu.w [r4+],r3 | |
38 | test_move_cc 0 0 0 0 | |
39 | dumpr3 ; ff22 | |
40 | ||
41 | bdap.b -4,r4 | |
42 | move.d [r6+],r3 | |
43 | test_move_cc 0 0 0 0 | |
44 | dumpr3 ; 4455aa77 | |
45 | ||
46 | bdap.w 2,r6 | |
47 | move.d [r3],r9 | |
48 | test_move_cc 1 0 0 0 | |
49 | dumpr3 ; ff224455 | |
50 | ||
51 | add.d 76789885,r5 | |
52 | bdap.d -76789887,r5 | |
53 | move.d [r3],r9 | |
54 | test_move_cc 0 0 0 0 | |
55 | dumpr3 ; 55aa77ff | |
56 | ||
57 | quit |