xref: /openbmc/qemu/tests/tcg/cris/bare/check_orm.s (revision 46627f41)
1# mach: crisv0 crisv3 crisv8 crisv10 crisv32
2# output: 3\n3\nffff\nffffffff\n7c33f7db\nffff0003\n3\nfedaffff\n7813f7db\n3\n3\nfeb\n781344db\n
3
4 .include "testutils.inc"
5 .data
6x:
7 .dword 2,1,0xff0f,-1,0x5432f789
8 .word 2,1,0xff5f,0xf789
9 .byte 2,1,0x4a,0x89
10
11 start
12 moveq 1,r3
13 move.d x,r5
14 or.d [r5+],r3
15 checkr3 3
16
17 moveq 2,r3
18 or.d [r5],r3
19 addq 4,r5
20 checkr3 3
21
22 move.d 0xf0ff,r3
23 or.d [r5+],r3
24 checkr3 ffff
25
26 moveq -1,r3
27 or.d [r5+],r3
28 checkr3 ffffffff
29
30 move.d 0x78134452,r3
31 or.d [r5+],r3
32 checkr3 7c33f7db
33
34 move.d 0xffff0001,r3
35 or.w [r5+],r3
36 checkr3 ffff0003
37
38 moveq 2,r3
39 or.w [r5],r3
40 addq 2,r5
41 test_move_cc 0 0 0 0
42 checkr3 3
43
44 move.d 0xfedaffaf,r3
45 or.w [r5+],r3
46 test_move_cc 1 0 0 0
47 checkr3 fedaffff
48
49 move.d 0x78134452,r3
50 or.w [r5+],r3
51 test_move_cc 1 0 0 0
52 checkr3 7813f7db
53
54 moveq 1,r3
55 or.b [r5+],r3
56 test_move_cc 0 0 0 0
57 checkr3 3
58
59 moveq 2,r3
60 or.b [r5],r3
61 addq 1,r5
62 test_move_cc 0 0 0 0
63 checkr3 3
64
65 move.d 0xfa3,r3
66 or.b [r5+],r3
67 test_move_cc 1 0 0 0
68 checkr3 feb
69
70 move.d 0x78134453,r3
71 or.b [r5],r3
72 test_move_cc 1 0 0 0
73 checkr3 781344db
74
75 quit
76