Lines Matching refs:getSLEB128Size
166 EXPECT_EQ(1u, getSLEB128Size(0x0LL));
167 EXPECT_EQ(1u, getSLEB128Size(0x1LL));
168 EXPECT_EQ(1u, getSLEB128Size(0x3fLL));
169 EXPECT_EQ(1u, getSLEB128Size(0x3fLL));
170 EXPECT_EQ(2u, getSLEB128Size(0x40LL));
172 EXPECT_EQ(2u, getSLEB128Size(0x7fLL));
173 EXPECT_EQ(2u, getSLEB128Size(0x80LL));
174 EXPECT_EQ(2u, getSLEB128Size(0x1f80LL));
175 EXPECT_EQ(2u, getSLEB128Size(0x1fffLL));
176 EXPECT_EQ(3u, getSLEB128Size(0x2000LL));
178 EXPECT_EQ(3u, getSLEB128Size(0x3fffLL));
179 EXPECT_EQ(3u, getSLEB128Size(0x4000LL));
180 EXPECT_EQ(3u, getSLEB128Size(0xfc000LL));
181 EXPECT_EQ(3u, getSLEB128Size(0xfffffLL));
182 EXPECT_EQ(4u, getSLEB128Size(0x100000LL));
184 EXPECT_EQ(4u, getSLEB128Size(0x1fffffLL));
185 EXPECT_EQ(4u, getSLEB128Size(0x200000LL));
186 EXPECT_EQ(4u, getSLEB128Size(0x7e00000LL));
187 EXPECT_EQ(4u, getSLEB128Size(0x7ffffffLL));
188 EXPECT_EQ(5u, getSLEB128Size(0x8000000LL));
190 EXPECT_EQ(5u, getSLEB128Size(0xfffffffLL));
191 EXPECT_EQ(5u, getSLEB128Size(0x10000000LL));
192 EXPECT_EQ(5u, getSLEB128Size(0x3f0000000LL));
193 EXPECT_EQ(5u, getSLEB128Size(0x3ffffffffLL));
194 EXPECT_EQ(6u, getSLEB128Size(0x400000000LL));
196 EXPECT_EQ(6u, getSLEB128Size(0x7ffffffffLL));
197 EXPECT_EQ(6u, getSLEB128Size(0x800000000LL));
198 EXPECT_EQ(6u, getSLEB128Size(0x1f800000000LL));
199 EXPECT_EQ(6u, getSLEB128Size(0x1ffffffffffLL));
200 EXPECT_EQ(7u, getSLEB128Size(0x20000000000LL));
202 EXPECT_EQ(7u, getSLEB128Size(0x3ffffffffffLL));
203 EXPECT_EQ(7u, getSLEB128Size(0x40000000000LL));
204 EXPECT_EQ(7u, getSLEB128Size(0xfc0000000000LL));
205 EXPECT_EQ(7u, getSLEB128Size(0xffffffffffffLL));
206 EXPECT_EQ(8u, getSLEB128Size(0x1000000000000LL));
208 EXPECT_EQ(8u, getSLEB128Size(0x1ffffffffffffLL));
209 EXPECT_EQ(8u, getSLEB128Size(0x2000000000000LL));
210 EXPECT_EQ(8u, getSLEB128Size(0x7e000000000000LL));
211 EXPECT_EQ(8u, getSLEB128Size(0x7fffffffffffffLL));
212 EXPECT_EQ(9u, getSLEB128Size(0x80000000000000LL));
214 EXPECT_EQ(9u, getSLEB128Size(0xffffffffffffffLL));
215 EXPECT_EQ(9u, getSLEB128Size(0x100000000000000LL));
216 EXPECT_EQ(9u, getSLEB128Size(0x3f00000000000000LL));
217 EXPECT_EQ(9u, getSLEB128Size(0x3fffffffffffffffLL));
218 EXPECT_EQ(10u, getSLEB128Size(0x4000000000000000LL));
220 EXPECT_EQ(10u, getSLEB128Size(0x7fffffffffffffffLL));
221 EXPECT_EQ(10u, getSLEB128Size(INT64_MAX));
231 EXPECT_EQ(1u, getSLEB128Size(0x0LL));
232 EXPECT_EQ(1u, getSLEB128Size(-0x1LL));
233 EXPECT_EQ(1u, getSLEB128Size(-0x3fLL));
234 EXPECT_EQ(1u, getSLEB128Size(-0x40LL));
235 EXPECT_EQ(1u, getSLEB128Size(-0x40LL)); // special case
236 EXPECT_EQ(2u, getSLEB128Size(-0x41LL));
238 EXPECT_EQ(2u, getSLEB128Size(-0x7fLL));
239 EXPECT_EQ(2u, getSLEB128Size(-0x80LL));
240 EXPECT_EQ(2u, getSLEB128Size(-0x1f80LL));
241 EXPECT_EQ(2u, getSLEB128Size(-0x2000LL));
242 EXPECT_EQ(3u, getSLEB128Size(-0x207fLL));
243 EXPECT_EQ(3u, getSLEB128Size(-0x2080LL));
245 EXPECT_EQ(3u, getSLEB128Size(-0x3fffLL));
246 EXPECT_EQ(3u, getSLEB128Size(-0x4000LL));
247 EXPECT_EQ(3u, getSLEB128Size(-0xfc000LL));
248 EXPECT_EQ(3u, getSLEB128Size(-0x100000LL));
249 EXPECT_EQ(4u, getSLEB128Size(-0x103fffLL));
250 EXPECT_EQ(4u, getSLEB128Size(-0x104000LL));
252 EXPECT_EQ(4u, getSLEB128Size(-0x1fffffLL));
253 EXPECT_EQ(4u, getSLEB128Size(-0x200000LL));
254 EXPECT_EQ(4u, getSLEB128Size(-0x7e00000LL));
255 EXPECT_EQ(4u, getSLEB128Size(-0x8000000LL));
256 EXPECT_EQ(5u, getSLEB128Size(-0x81fffffLL));
257 EXPECT_EQ(5u, getSLEB128Size(-0x8200000LL));
259 EXPECT_EQ(5u, getSLEB128Size(-0xfffffffLL));
260 EXPECT_EQ(5u, getSLEB128Size(-0x10000000LL));
261 EXPECT_EQ(5u, getSLEB128Size(-0x3f0000000LL));
262 EXPECT_EQ(5u, getSLEB128Size(-0x400000000LL));
263 EXPECT_EQ(6u, getSLEB128Size(-0x40fffffffLL));
264 EXPECT_EQ(6u, getSLEB128Size(-0x410000000LL));
266 EXPECT_EQ(6u, getSLEB128Size(-0x7ffffffffLL));
267 EXPECT_EQ(6u, getSLEB128Size(-0x800000000LL));
268 EXPECT_EQ(6u, getSLEB128Size(-0x1f800000000LL));
269 EXPECT_EQ(6u, getSLEB128Size(-0x20000000000LL));
270 EXPECT_EQ(7u, getSLEB128Size(-0x207ffffffffLL));
271 EXPECT_EQ(7u, getSLEB128Size(-0x20800000000LL));
273 EXPECT_EQ(7u, getSLEB128Size(-0x3ffffffffffLL));
274 EXPECT_EQ(7u, getSLEB128Size(-0x40000000000LL));
275 EXPECT_EQ(7u, getSLEB128Size(-0xfc0000000000LL));
276 EXPECT_EQ(7u, getSLEB128Size(-0x1000000000000LL));
277 EXPECT_EQ(8u, getSLEB128Size(-0x103ffffffffffLL));
278 EXPECT_EQ(8u, getSLEB128Size(-0x1040000000000LL));
280 EXPECT_EQ(8u, getSLEB128Size(-0x1ffffffffffffLL));
281 EXPECT_EQ(8u, getSLEB128Size(-0x2000000000000LL));
282 EXPECT_EQ(8u, getSLEB128Size(-0x7e000000000000LL));
283 EXPECT_EQ(8u, getSLEB128Size(-0x80000000000000LL));
284 EXPECT_EQ(9u, getSLEB128Size(-0x81ffffffffffffLL));
285 EXPECT_EQ(9u, getSLEB128Size(-0x82000000000000LL));
287 EXPECT_EQ(9u, getSLEB128Size(-0xffffffffffffffLL));
288 EXPECT_EQ(9u, getSLEB128Size(-0x100000000000000LL));
289 EXPECT_EQ(9u, getSLEB128Size(-0x3f00000000000000LL));
290 EXPECT_EQ(9u, getSLEB128Size(-0x4000000000000000LL));
291 EXPECT_EQ(10u, getSLEB128Size(-0x40ffffffffffffffLL));
292 EXPECT_EQ(10u, getSLEB128Size(-0x4100000000000000LL));
294 EXPECT_EQ(10u, getSLEB128Size(-0x7fffffffffffffffLL));
295 EXPECT_EQ(10u, getSLEB128Size(-0x8000000000000000LL));
296 EXPECT_EQ(10u, getSLEB128Size(INT64_MIN));