tcg: Change TCGType to an enumeration.
[qemu/aliguori-queue.git] / tests / cris / check_mcp.s
blobe65ccddfd465111ed733d9a9adbb1dc1e17edc4c
1 # mach: crisv32
2 # output: fffffffe\n1\n1ffff\nfffffffe\ncc463bdc\n4c463bdc\n0\n
4 .include "testutils.inc"
5 start
7 ; Set R, clear C.
8 move 0x100,ccs
9 moveq -5,r3
10 move 2,mof
11 mcp mof,r3
12 test_cc 1 0 0 0
13 checkr3 fffffffe
15 moveq 2,r3
16 move -1,srp
17 mcp srp,r3
18 test_cc 0 0 0 0
19 checkr3 1
21 move 0xffff,srp
22 move srp,r3
23 mcp srp,r3
24 test_cc 0 0 0 0
25 checkr3 1ffff
27 move -1,mof
28 move mof,r3
29 mcp mof,r3
30 test_cc 1 0 0 0
31 checkr3 fffffffe
33 move 0x5432f789,mof
34 move.d 0x78134452,r3
35 mcp mof,r3
36 test_cc 1 0 1 0
37 checkr3 cc463bdc
39 move 0x80000000,srp
40 mcp srp,r3
41 test_cc 0 0 1 0
42 checkr3 4c463bdc
44 move 0xb3b9c423,srp
45 mcp srp,r3
46 test_cc 0 1 0 0
47 checkr3 0
49 quit