Commit | Line | Data |
---|---|---|
5e1f6430 HPN |
1 | # mach: crisv32 |
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 | y: | |
11 | .dword 32769 | |
12 | .word -1 | |
13 | .dword 5 | |
14 | .byte 3,-4 | |
15 | .word 2 | |
16 | .dword -76789887 | |
17 | ||
18 | start | |
19 | moveq -1,r0 | |
20 | move.d x-32768,r5 | |
21 | move.d y,r13 | |
22 | addo.d [r13+],r5,acr | |
23 | move.d [acr],r3 | |
24 | dumpr3 ; 4455aa77 | |
25 | ||
26 | addu.w 32770,r5 | |
27 | addo.w [r13+],r5,acr | |
28 | move.d [acr],r3 | |
29 | dumpr3 ; 4455aa77 | |
30 | ||
31 | addo.d [r13],acr,acr | |
32 | addq 4,r13 | |
33 | move.d [acr],r3 | |
34 | dumpr3 ; ee19ccff | |
35 | ||
36 | addo.b [r13+],r5,acr | |
37 | movu.w [acr],r3 | |
38 | dumpr3 ; ff22 | |
39 | ||
40 | addo.b [r13],acr,acr | |
41 | addq 1,r13 | |
42 | move.d [acr],r3 | |
43 | dumpr3 ; 4455aa77 | |
44 | ||
45 | addo.w [r13],acr,acr | |
46 | addq 2,r13 | |
47 | move.d [acr],r3 | |
48 | dumpr3 ; ff224455 | |
49 | ||
50 | addo.d [r13+],r5,acr | |
51 | add.d 76789885,acr | |
52 | move.d [acr],r3 | |
53 | dumpr3 ; 55aa77ff | |
54 | ||
55 | quit |