summaryrefslogtreecommitdiffstats
path: root/tests/tcg/cris/check_bas.s
blob: 11929d420200dc893179e702d7efd0662acf6a97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# mach: crisv32
# output: 0\n0\n0\nfb349abc\n0\n12124243\n0\n0\neab5baad\n0\nefb37832\n

 .include "testutils.inc"
 start
x:
 setf zncv
 bsr 0f
 nop
0:
 test_cc 1 1 1 1
 move srp,r3
 sub.d 0b,r3
 checkr3 0

 bas 1f,mof
 moveq 0,r0
6:
 nop
 quit

2:
 move srp,r3
 sub.d 3f,r3
 checkr3 0
 move srp,r4
 subq 4,r4
 move.d [r4],r3
 checkr3 fb349abc

 basc 4f,mof
 nop
 .dword 0x12124243
7:
 nop
 quit

8:
 move mof,r3
 sub.d 7f,r3
 checkr3 0

 move mof,r4
 subq 4,r4
 move.d [r4],r3
 checkr3 eab5baad

 jasc 9f,mof
 nop
 .dword 0xefb37832
0:
 quit

 quit
9:
 move mof,r3
 sub.d 0b,r3
 checkr3 0

 move mof,r4
 subq 4,r4
 move.d [r4],r3
 checkr3 efb37832

 quit

4:
 move mof,r3
 sub.d 7b,r3
 checkr3 0
 move mof,r4
 subq 4,r4
 move.d [r4],r3
 checkr3 12124243
 basc 5f,bz
 moveq 0,r3
 .dword 0x7634aeba
 quit

 .space 32770,0
1:
 move mof,r3
 sub.d 6b,r3
 checkr3 0

 bsrc 2b
 nop
 .dword 0xfb349abc
3:

 quit

5:
 move mof,r3
 sub.d 7b,r3
 checkr3 0
 move.d 8b,r6
 jasc r6,mof
 nop
 .dword 0xeab5baad
7:
 quit
OpenPOWER on IntegriCloud