aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bitgen/bitgen_test.ok
blob: b8ce9bc80d2b26e4b83ff32156c6ef8ce15de6f4 (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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
--- 16 be
osmo_store16be_ext(0x2211, &buf[0], 2) = 22 11 00 00 
osmo_load16be_ext(&buf[0], 2) = 0x2211
osmo_load16be_ext_2(&buf[0], 2) = 0x2211
osmo_store16be_ext(0x2211, &buf[1], 2) = 00 22 11 00 
osmo_load16be_ext(&buf[1], 2) = 0x2211
osmo_load16be_ext_2(&buf[1], 2) = 0x2211
osmo_store16be_ext(0x2211, &buf[0], 1) = 11 00 
osmo_load16be_ext(&buf[0], 1) = 0x1100
osmo_load16be_ext_2(&buf[0], 1) = 0x11
--- 16 le
osmo_store16le_ext(0x2211, &buf[0], 2) = 11 22 00 00 
osmo_load16le_ext(&buf[0], 2) = 0x2211
osmo_store16le_ext(0x2211, &buf[1], 2) = 00 11 22 00 
osmo_load16le_ext(&buf[1], 2) = 0x2211
osmo_store16le_ext(0x2211, &buf[0], 1) = 11 00 
osmo_load16le_ext(&buf[0], 1) = 0x11
--- 32 be
osmo_store32be_ext(0x44332211, &buf[0], 4) = 44 33 22 11 00 00 00 00 
osmo_load32be_ext(&buf[0], 4) = 0x44332211
osmo_load32be_ext_2(&buf[0], 4) = 0x44332211
osmo_store32be_ext(0x44332211, &buf[1], 4) = 00 44 33 22 11 00 00 00 
osmo_load32be_ext(&buf[1], 4) = 0x44332211
osmo_load32be_ext_2(&buf[1], 4) = 0x44332211
osmo_store32be_ext(0x44332211, &buf[2], 4) = 00 00 44 33 22 11 00 00 
osmo_load32be_ext(&buf[2], 4) = 0x44332211
osmo_load32be_ext_2(&buf[2], 4) = 0x44332211
osmo_store32be_ext(0x44332211, &buf[3], 4) = 00 00 00 44 33 22 11 00 
osmo_load32be_ext(&buf[3], 4) = 0x44332211
osmo_load32be_ext_2(&buf[3], 4) = 0x44332211
osmo_store32be_ext(0x44332211, &buf[0], 3) = 33 22 11 00 00 00 
osmo_load32be_ext(&buf[0], 3) = 0x33221100
osmo_load32be_ext_2(&buf[0], 3) = 0x332211
osmo_store32be_ext(0x44332211, &buf[1], 3) = 00 33 22 11 00 00 
osmo_load32be_ext(&buf[1], 3) = 0x33221100
osmo_load32be_ext_2(&buf[1], 3) = 0x332211
osmo_store32be_ext(0x44332211, &buf[2], 3) = 00 00 33 22 11 00 
osmo_load32be_ext(&buf[2], 3) = 0x33221100
osmo_load32be_ext_2(&buf[2], 3) = 0x332211
osmo_store32be_ext(0x44332211, &buf[0], 2) = 22 11 00 00 
osmo_load32be_ext(&buf[0], 2) = 0x22110000
osmo_load32be_ext_2(&buf[0], 2) = 0x2211
osmo_store32be_ext(0x44332211, &buf[1], 2) = 00 22 11 00 
osmo_load32be_ext(&buf[1], 2) = 0x22110000
osmo_load32be_ext_2(&buf[1], 2) = 0x2211
osmo_store32be_ext(0x44332211, &buf[0], 1) = 11 00 
osmo_load32be_ext(&buf[0], 1) = 0x11000000
osmo_load32be_ext_2(&buf[0], 1) = 0x11
--- 32 le
osmo_store32le_ext(0x44332211, &buf[0], 4) = 11 22 33 44 00 00 00 00 
osmo_load32le_ext(&buf[0], 4) = 0x44332211
osmo_store32le_ext(0x44332211, &buf[1], 4) = 00 11 22 33 44 00 00 00 
osmo_load32le_ext(&buf[1], 4) = 0x44332211
osmo_store32le_ext(0x44332211, &buf[2], 4) = 00 00 11 22 33 44 00 00 
osmo_load32le_ext(&buf[2], 4) = 0x44332211
osmo_store32le_ext(0x44332211, &buf[3], 4) = 00 00 00 11 22 33 44 00 
osmo_load32le_ext(&buf[3], 4) = 0x44332211
osmo_store32le_ext(0x44332211, &buf[0], 3) = 11 22 33 00 00 00 
osmo_load32le_ext(&buf[0], 3) = 0x332211
osmo_store32le_ext(0x44332211, &buf[1], 3) = 00 11 22 33 00 00 
osmo_load32le_ext(&buf[1], 3) = 0x332211
osmo_store32le_ext(0x44332211, &buf[2], 3) = 00 00 11 22 33 00 
osmo_load32le_ext(&buf[2], 3) = 0x332211
osmo_store32le_ext(0x44332211, &buf[0], 2) = 11 22 00 00 
osmo_load32le_ext(&buf[0], 2) = 0x2211
osmo_store32le_ext(0x44332211, &buf[1], 2) = 00 11 22 00 
osmo_load32le_ext(&buf[1], 2) = 0x2211
osmo_store32le_ext(0x44332211, &buf[0], 1) = 11 00 
osmo_load32le_ext(&buf[0], 1) = 0x11
--- 64 be
osmo_store64be_ext(0x8877665544332211, &buf[0], 8) = 88 77 66 55 44 33 22 11 00 00 00 00 00 00 00 00 
osmo_load64be_ext(&buf[0], 8) = 0x8877665544332211
osmo_load64be_ext_2(&buf[0], 8) = 0x8877665544332211
osmo_store64be_ext(0x8877665544332211, &buf[1], 8) = 00 88 77 66 55 44 33 22 11 00 00 00 00 00 00 00 
osmo_load64be_ext(&buf[1], 8) = 0x8877665544332211
osmo_load64be_ext_2(&buf[1], 8) = 0x8877665544332211
osmo_store64be_ext(0x8877665544332211, &buf[2], 8) = 00 00 88 77 66 55 44 33 22 11 00 00 00 00 00 00 
osmo_load64be_ext(&buf[2], 8) = 0x8877665544332211
osmo_load64be_ext_2(&buf[2], 8) = 0x8877665544332211
osmo_store64be_ext(0x8877665544332211, &buf[3], 8) = 00 00 00 88 77 66 55 44 33 22 11 00 00 00 00 00 
osmo_load64be_ext(&buf[3], 8) = 0x8877665544332211
osmo_load64be_ext_2(&buf[3], 8) = 0x8877665544332211
osmo_store64be_ext(0x8877665544332211, &buf[4], 8) = 00 00 00 00 88 77 66 55 44 33 22 11 00 00 00 00 
osmo_load64be_ext(&buf[4], 8) = 0x8877665544332211
osmo_load64be_ext_2(&buf[4], 8) = 0x8877665544332211
osmo_store64be_ext(0x8877665544332211, &buf[5], 8) = 00 00 00 00 00 88 77 66 55 44 33 22 11 00 00 00 
osmo_load64be_ext(&buf[5], 8) = 0x8877665544332211
osmo_load64be_ext_2(&buf[5], 8) = 0x8877665544332211
osmo_store64be_ext(0x8877665544332211, &buf[6], 8) = 00 00 00 00 00 00 88 77 66 55 44 33 22 11 00 00 
osmo_load64be_ext(&buf[6], 8) = 0x8877665544332211
osmo_load64be_ext_2(&buf[6], 8) = 0x8877665544332211
osmo_store64be_ext(0x8877665544332211, &buf[7], 8) = 00 00 00 00 00 00 00 88 77 66 55 44 33 22 11 00 
osmo_load64be_ext(&buf[7], 8) = 0x8877665544332211
osmo_load64be_ext_2(&buf[7], 8) = 0x8877665544332211
osmo_store64be_ext(0x8877665544332211, &buf[0], 7) = 77 66 55 44 33 22 11 00 00 00 00 00 00 00 
osmo_load64be_ext(&buf[0], 7) = 0x7766554433221100
osmo_load64be_ext_2(&buf[0], 7) = 0x77665544332211
osmo_store64be_ext(0x8877665544332211, &buf[1], 7) = 00 77 66 55 44 33 22 11 00 00 00 00 00 00 
osmo_load64be_ext(&buf[1], 7) = 0x7766554433221100
osmo_load64be_ext_2(&buf[1], 7) = 0x77665544332211
osmo_store64be_ext(0x8877665544332211, &buf[2], 7) = 00 00 77 66 55 44 33 22 11 00 00 00 00 00 
osmo_load64be_ext(&buf[2], 7) = 0x7766554433221100
osmo_load64be_ext_2(&buf[2], 7) = 0x77665544332211
osmo_store64be_ext(0x8877665544332211, &buf[3], 7) = 00 00 00 77 66 55 44 33 22 11 00 00 00 00 
osmo_load64be_ext(&buf[3], 7) = 0x7766554433221100
osmo_load64be_ext_2(&buf[3], 7) = 0x77665544332211
osmo_store64be_ext(0x8877665544332211, &buf[4], 7) = 00 00 00 00 77 66 55 44 33 22 11 00 00 00 
osmo_load64be_ext(&buf[4], 7) = 0x7766554433221100
osmo_load64be_ext_2(&buf[4], 7) = 0x77665544332211
osmo_store64be_ext(0x8877665544332211, &buf[5], 7) = 00 00 00 00 00 77 66 55 44 33 22 11 00 00 
osmo_load64be_ext(&buf[5], 7) = 0x7766554433221100
osmo_load64be_ext_2(&buf[5], 7) = 0x77665544332211
osmo_store64be_ext(0x8877665544332211, &buf[6], 7) = 00 00 00 00 00 00 77 66 55 44 33 22 11 00 
osmo_load64be_ext(&buf[6], 7) = 0x7766554433221100
osmo_load64be_ext_2(&buf[6], 7) = 0x77665544332211
osmo_store64be_ext(0x8877665544332211, &buf[0], 6) = 66 55 44 33 22 11 00 00 00 00 00 00 
osmo_load64be_ext(&buf[0], 6) = 0x6655443322110000
osmo_load64be_ext_2(&buf[0], 6) = 0x665544332211
osmo_store64be_ext(0x8877665544332211, &buf[1], 6) = 00 66 55 44 33 22 11 00 00 00 00 00 
osmo_load64be_ext(&buf[1], 6) = 0x6655443322110000
osmo_load64be_ext_2(&buf[1], 6) = 0x665544332211
osmo_store64be_ext(0x8877665544332211, &buf[2], 6) = 00 00 66 55 44 33 22 11 00 00 00 00 
osmo_load64be_ext(&buf[2], 6) = 0x6655443322110000
osmo_load64be_ext_2(&buf[2], 6) = 0x665544332211
osmo_store64be_ext(0x8877665544332211, &buf[3], 6) = 00 00 00 66 55 44 33 22 11 00 00 00 
osmo_load64be_ext(&buf[3], 6) = 0x6655443322110000
osmo_load64be_ext_2(&buf[3], 6) = 0x665544332211
osmo_store64be_ext(0x8877665544332211, &buf[4], 6) = 00 00 00 00 66 55 44 33 22 11 00 00 
osmo_load64be_ext(&buf[4], 6) = 0x6655443322110000
osmo_load64be_ext_2(&buf[4], 6) = 0x665544332211
osmo_store64be_ext(0x8877665544332211, &buf[5], 6) = 00 00 00 00 00 66 55 44 33 22 11 00 
osmo_load64be_ext(&buf[5], 6) = 0x6655443322110000
osmo_load64be_ext_2(&buf[5], 6) = 0x665544332211
osmo_store64be_ext(0x8877665544332211, &buf[0], 5) = 55 44 33 22 11 00 00 00 00 00 
osmo_load64be_ext(&buf[0], 5) = 0x5544332211000000
osmo_load64be_ext_2(&buf[0], 5) = 0x5544332211
osmo_store64be_ext(0x8877665544332211, &buf[1], 5) = 00 55 44 33 22 11 00 00 00 00 
osmo_load64be_ext(&buf[1], 5) = 0x5544332211000000
osmo_load64be_ext_2(&buf[1], 5) = 0x5544332211
osmo_store64be_ext(0x8877665544332211, &buf[2], 5) = 00 00 55 44 33 22 11 00 00 00 
osmo_load64be_ext(&buf[2], 5) = 0x5544332211000000
osmo_load64be_ext_2(&buf[2], 5) = 0x5544332211
osmo_store64be_ext(0x8877665544332211, &buf[3], 5) = 00 00 00 55 44 33 22 11 00 00 
osmo_load64be_ext(&buf[3], 5) = 0x5544332211000000
osmo_load64be_ext_2(&buf[3], 5) = 0x5544332211
osmo_store64be_ext(0x8877665544332211, &buf[4], 5) = 00 00 00 00 55 44 33 22 11 00 
osmo_load64be_ext(&buf[4], 5) = 0x5544332211000000
osmo_load64be_ext_2(&buf[4], 5) = 0x5544332211
osmo_store64be_ext(0x8877665544332211, &buf[0], 4) = 44 33 22 11 00 00 00 00 
osmo_load64be_ext(&buf[0], 4) = 0x4433221100000000
osmo_load64be_ext_2(&buf[0], 4) = 0x44332211
osmo_store64be_ext(0x8877665544332211, &buf[1], 4) = 00 44 33 22 11 00 00 00 
osmo_load64be_ext(&buf[1], 4) = 0x4433221100000000
osmo_load64be_ext_2(&buf[1], 4) = 0x44332211
osmo_store64be_ext(0x8877665544332211, &buf[2], 4) = 00 00 44 33 22 11 00 00 
osmo_load64be_ext(&buf[2], 4) = 0x4433221100000000
osmo_load64be_ext_2(&buf[2], 4) = 0x44332211
osmo_store64be_ext(0x8877665544332211, &buf[3], 4) = 00 00 00 44 33 22 11 00 
osmo_load64be_ext(&buf[3], 4) = 0x4433221100000000
osmo_load64be_ext_2(&buf[3], 4) = 0x44332211
osmo_store64be_ext(0x8877665544332211, &buf[0], 3) = 33 22 11 00 00 00 
osmo_load64be_ext(&buf[0], 3) = 0x3322110000000000
osmo_load64be_ext_2(&buf[0], 3) = 0x332211
osmo_store64be_ext(0x8877665544332211, &buf[1], 3) = 00 33 22 11 00 00 
osmo_load64be_ext(&buf[1], 3) = 0x3322110000000000
osmo_load64be_ext_2(&buf[1], 3) = 0x332211
osmo_store64be_ext(0x8877665544332211, &buf[2], 3) = 00 00 33 22 11 00 
osmo_load64be_ext(&buf[2], 3) = 0x3322110000000000
osmo_load64be_ext_2(&buf[2], 3) = 0x332211
osmo_store64be_ext(0x8877665544332211, &buf[0], 2) = 22 11 00 00 
osmo_load64be_ext(&buf[0], 2) = 0x2211000000000000
osmo_load64be_ext_2(&buf[0], 2) = 0x2211
osmo_store64be_ext(0x8877665544332211, &buf[1], 2) = 00 22 11 00 
osmo_load64be_ext(&buf[1], 2) = 0x2211000000000000
osmo_load64be_ext_2(&buf[1], 2) = 0x2211
osmo_store64be_ext(0x8877665544332211, &buf[0], 1) = 11 00 
osmo_load64be_ext(&buf[0], 1) = 0x1100000000000000
osmo_load64be_ext_2(&buf[0], 1) = 0x11
--- 64 le
osmo_store64le_ext(0x8877665544332211, &buf[0], 8) = 11 22 33 44 55 66 77 88 00 00 00 00 00 00 00 00 
osmo_load64le_ext(&buf[0], 8) = 0x8877665544332211
osmo_store64le_ext(0x8877665544332211, &buf[1], 8) = 00 11 22 33 44 55 66 77 88 00 00 00 00 00 00 00 
osmo_load64le_ext(&buf[1], 8) = 0x8877665544332211
osmo_store64le_ext(0x8877665544332211, &buf[2], 8) = 00 00 11 22 33 44 55 66 77 88 00 00 00 00 00 00 
osmo_load64le_ext(&buf[2], 8) = 0x8877665544332211
osmo_store64le_ext(0x8877665544332211, &buf[3], 8) = 00 00 00 11 22 33 44 55 66 77 88 00 00 00 00 00 
osmo_load64le_ext(&buf[3], 8) = 0x8877665544332211
osmo_store64le_ext(0x8877665544332211, &buf[4], 8) = 00 00 00 00 11 22 33 44 55 66 77 88 00 00 00 00 
osmo_load64le_ext(&buf[4], 8) = 0x8877665544332211
osmo_store64le_ext(0x8877665544332211, &buf[5], 8) = 00 00 00 00 00 11 22 33 44 55 66 77 88 00 00 00 
osmo_load64le_ext(&buf[5], 8) = 0x8877665544332211
osmo_store64le_ext(0x8877665544332211, &buf[6], 8) = 00 00 00 00 00 00 11 22 33 44 55 66 77 88 00 00 
osmo_load64le_ext(&buf[6], 8) = 0x8877665544332211
osmo_store64le_ext(0x8877665544332211, &buf[7], 8) = 00 00 00 00 00 00 00 11 22 33 44 55 66 77 88 00 
osmo_load64le_ext(&buf[7], 8) = 0x8877665544332211
osmo_store64le_ext(0x8877665544332211, &buf[0], 7) = 11 22 33 44 55 66 77 00 00 00 00 00 00 00 
osmo_load64le_ext(&buf[0], 7) = 0x77665544332211
osmo_store64le_ext(0x8877665544332211, &buf[1], 7) = 00 11 22 33 44 55 66 77 00 00 00 00 00 00 
osmo_load64le_ext(&buf[1], 7) = 0x77665544332211
osmo_store64le_ext(0x8877665544332211, &buf[2], 7) = 00 00 11 22 33 44 55 66 77 00 00 00 00 00 
osmo_load64le_ext(&buf[2], 7) = 0x77665544332211
osmo_store64le_ext(0x8877665544332211, &buf[3], 7) = 00 00 00 11 22 33 44 55 66 77 00 00 00 00 
osmo_load64le_ext(&buf[3], 7) = 0x77665544332211
osmo_store64le_ext(0x8877665544332211, &buf[4], 7) = 00 00 00 00 11 22 33 44 55 66 77 00 00 00 
osmo_load64le_ext(&buf[4], 7) = 0x77665544332211
osmo_store64le_ext(0x8877665544332211, &buf[5], 7) = 00 00 00 00 00 11 22 33 44 55 66 77 00 00 
osmo_load64le_ext(&buf[5], 7) = 0x77665544332211
osmo_store64le_ext(0x8877665544332211, &buf[6], 7) = 00 00 00 00 00 00 11 22 33 44 55 66 77 00 
osmo_load64le_ext(&buf[6], 7) = 0x77665544332211
osmo_store64le_ext(0x8877665544332211, &buf[0], 6) = 11 22 33 44 55 66 00 00 00 00 00 00 
osmo_load64le_ext(&buf[0], 6) = 0x665544332211
osmo_store64le_ext(0x8877665544332211, &buf[1], 6) = 00 11 22 33 44 55 66 00 00 00 00 00 
osmo_load64le_ext(&buf[1], 6) = 0x665544332211
osmo_store64le_ext(0x8877665544332211, &buf[2], 6) = 00 00 11 22 33 44 55 66 00 00 00 00 
osmo_load64le_ext(&buf[2], 6) = 0x665544332211
osmo_store64le_ext(0x8877665544332211, &buf[3], 6) = 00 00 00 11 22 33 44 55 66 00 00 00 
osmo_load64le_ext(&buf[3], 6) = 0x665544332211
osmo_store64le_ext(0x8877665544332211, &buf[4], 6) = 00 00 00 00 11 22 33 44 55 66 00 00 
osmo_load64le_ext(&buf[4], 6) = 0x665544332211
osmo_store64le_ext(0x8877665544332211, &buf[5], 6) = 00 00 00 00 00 11 22 33 44 55 66 00 
osmo_load64le_ext(&buf[5], 6) = 0x665544332211
osmo_store64le_ext(0x8877665544332211, &buf[0], 5) = 11 22 33 44 55 00 00 00 00 00 
osmo_load64le_ext(&buf[0], 5) = 0x5544332211
osmo_store64le_ext(0x8877665544332211, &buf[1], 5) = 00 11 22 33 44 55 00 00 00 00 
osmo_load64le_ext(&buf[1], 5) = 0x5544332211
osmo_store64le_ext(0x8877665544332211, &buf[2], 5) = 00 00 11 22 33 44 55 00 00 00 
osmo_load64le_ext(&buf[2], 5) = 0x5544332211
osmo_store64le_ext(0x8877665544332211, &buf[3], 5) = 00 00 00 11 22 33 44 55 00 00 
osmo_load64le_ext(&buf[3], 5) = 0x5544332211
osmo_store64le_ext(0x8877665544332211, &buf[4], 5) = 00 00 00 00 11 22 33 44 55 00 
osmo_load64le_ext(&buf[4], 5) = 0x5544332211
osmo_store64le_ext(0x8877665544332211, &buf[0], 4) = 11 22 33 44 00 00 00 00 
osmo_load64le_ext(&buf[0], 4) = 0x44332211
osmo_store64le_ext(0x8877665544332211, &buf[1], 4) = 00 11 22 33 44 00 00 00 
osmo_load64le_ext(&buf[1], 4) = 0x44332211
osmo_store64le_ext(0x8877665544332211, &buf[2], 4) = 00 00 11 22 33 44 00 00 
osmo_load64le_ext(&buf[2], 4) = 0x44332211
osmo_store64le_ext(0x8877665544332211, &buf[3], 4) = 00 00 00 11 22 33 44 00 
osmo_load64le_ext(&buf[3], 4) = 0x44332211
osmo_store64le_ext(0x8877665544332211, &buf[0], 3) = 11 22 33 00 00 00 
osmo_load64le_ext(&buf[0], 3) = 0x332211
osmo_store64le_ext(0x8877665544332211, &buf[1], 3) = 00 11 22 33 00 00 
osmo_load64le_ext(&buf[1], 3) = 0x332211
osmo_store64le_ext(0x8877665544332211, &buf[2], 3) = 00 00 11 22 33 00 
osmo_load64le_ext(&buf[2], 3) = 0x332211
osmo_store64le_ext(0x8877665544332211, &buf[0], 2) = 11 22 00 00 
osmo_load64le_ext(&buf[0], 2) = 0x2211
osmo_store64le_ext(0x8877665544332211, &buf[1], 2) = 00 11 22 00 
osmo_load64le_ext(&buf[1], 2) = 0x2211
osmo_store64le_ext(0x8877665544332211, &buf[0], 1) = 11 00 
osmo_load64le_ext(&buf[0], 1) = 0x11
--- store/load 0x112233 as 24bit big-endian, legacy
11 22 33 00 
0x11223300
--- store/load 0x112233 as 24bit big-endian
11 22 33 00 
0x112233
--- store/load 0x112233 as 24bit little-endian
33 22 11 00 
0x112233