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