Lines Matching refs:ins
240 unsigned int ins = *p++; in dasm_put() local
241 unsigned int action = (ins >> 16); in dasm_put()
249 n = (ins & 255); CK(n < D->maxsection, RANGE_SEC); in dasm_put()
252 case DASM_REL_EXT: if ((ins & 0x8000)) ofs += 8; break; in dasm_put()
253 case DASM_ALIGN: ofs += (ins & 255); b[pos++] = ofs; break; in dasm_put()
255 n = (ins & 2047) - 10; pl = D->lglabels + n; in dasm_put()
273 if ((ins & 0x8000)) ofs += 8; in dasm_put()
280 pl = D->lglabels + (ins & 2047) - 10; CKPL(lg, LG); goto putlabel; in dasm_put()
291 CK((n & ((1<<((ins>>10)&31))-1)) == 0, RANGE_I); in dasm_put()
292 n >>= ((ins>>10)&31); in dasm_put()
294 if ((ins & 0x8000)) in dasm_put()
295 CK(((n + (1<<(((ins>>5)&31)-1)))>>((ins>>5)&31)) == 0, RANGE_I); in dasm_put()
297 CK((n>>((ins>>5)&31)) == 0, RANGE_I); in dasm_put()
322 int scale = (ins & 3); in dasm_put()
383 unsigned int ins = *p++; in dasm_link() local
384 unsigned int action = (ins >> 16); in dasm_link()
389 case DASM_ALIGN: ofs -= (b[pos++] + ofs) & (ins & 255); break; in dasm_link()
409 do { if (!(x) && !(n = DASM_ADD_VENEER(D, buffer, ins, b, cp, o))) \
440 unsigned int ins = *p++; in dasm_encode() local
441 unsigned int action = (ins >> 16); in dasm_encode()
447 n = DASM_EXTERN(Dst, (unsigned char *)cp, (ins&2047), !(ins&2048)); in dasm_encode()
450 ins &= 255; while ((((char *)cp - base) & ins)) *cp++ = 0xd503201f; in dasm_encode()
464 if (!(ins & 0xf800)) { /* B, BL */ in dasm_encode()
467 } else if ((ins & 0x800)) { /* B.cond, CBZ, CBNZ, LDR* literal */ in dasm_encode()
470 } else if ((ins & 0x3000) == 0x2000) { /* ADR */ in dasm_encode()
473 } else if ((ins & 0x3000) == 0x3000) { /* ADRP */ in dasm_encode()
475 } else if ((ins & 0x1000)) { /* TBZ, TBNZ */ in dasm_encode()
478 } else if ((ins & 0x8000)) { /* absolute */ in dasm_encode()
486 if ((ins & 0x3000) == 0x3000) { /* ADRP */ in dasm_encode()
487 ins &= ~0x1000; in dasm_encode()
497 ins &= 2047; if (ins >= 20) D->globals[ins-20] = (void *)(base + n); in dasm_encode()
501 cp[-1] |= (n & ((1<<((ins>>5)&31))-1)) << (ins&31); in dasm_encode()
516 int scale = (ins & 3); in dasm_encode()
525 cp[-1] |= (n & 0x1f) << (ins & 0x1f); in dasm_encode()
527 default: *cp++ = ins; break; in dasm_encode()