Home | History | Annotate | Download | only in tests

Lines Matching full:cnt

100   size_t cnt;
135 for (cnt = 0; cnt < ninput; ++cnt)
137 if (asm_adduleb128 (scn, input[cnt]) != 0)
140 (uint32_t) input[cnt], asm_errmsg (-1));
144 if (asm_addsleb128 (scn, input[cnt]) != 0)
147 input[cnt], asm_errmsg (-1));
151 if (asm_adduleb128 (scn, -input[cnt]) != 0)
154 (uint32_t) -input[cnt], asm_errmsg (-1));
158 if (asm_addsleb128 (scn, -input[cnt]) != 0)
161 -input[cnt], asm_errmsg (-1));
212 for (cnt = 1; cnt < 3; ++cnt)
218 scn = elf_getscn (elf, cnt);
221 printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1));
230 cnt, elf_errmsg (-1));
236 scnnames[cnt]) != 0)
238 printf ("section %Zd's name differs: %s vs %s\n", cnt,
240 scnnames[cnt]);
244 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS))
246 printf ("section %Zd's type differs\n", cnt);
250 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
251 || (cnt == 2 && shdr->sh_flags != 0))
253 printf ("section %Zd's flags differs\n", cnt);
259 printf ("section %Zd's address differs\n", cnt);
263 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15))
264 || (cnt == 2
268 printf ("section %Zd's offset differs\n", cnt);
272 if ((cnt == 1 && shdr->sh_size != sizeof (expecteddata))
273 || (cnt == 2 && shdr->sh_size != 17))
275 printf ("section %Zd's size differs\n", cnt);
281 printf ("section %Zd's link differs\n", cnt);
287 printf ("section %Zd's info differs\n", cnt);
291 if ((cnt == 1 && shdr->sh_addralign != 16)
292 || (cnt != 1 && shdr->sh_addralign != 1))
294 printf ("section %Zd's addralign differs\n", cnt);
300 printf ("section %Zd's entsize differs\n", cnt);
304 if (cnt == 1)
310 printf ("cannot get data of section %Zd\n", cnt);
318 "expected 96\n", cnt, data->d_size);
325 printf ("data block content of section %Zd wrong\n", cnt);