gpn 283 nanojit/Assembler.cpp "register %s is free but assigned to ins", gpn(r)); gpn 1599 nanojit/Assembler.cpp const char* rname = ins->isQuad() ? fpn(r) : gpn(r); gpn 1821 nanojit/LIR.cpp arg, gpn(Assembler::argRegs[arg])); gpn 1827 nanojit/LIR.cpp arg, gpn(Assembler::savedRegs[arg])); gpn 1838 nanojit/NativeARM.cpp asm_output("ldr %s, [%s, #%d]",gpn(d),gpn(b),(off)); gpn 1995 nanojit/NativeARM.cpp asm_output("ldr%s %s, [%s, #-%d]", condNames[_c], gpn(PC), gpn(PC), -offs); gpn 292 nanojit/NativeARM.h asm_output("bx %s", gpn(_r)); } while(0) gpn 333 nanojit/NativeARM.h asm_output("%s%s%s %s, #0x%X", #op, condNames[cond], (S)?"s":"", gpn(rd), decOp2Imm(op2imm));\ gpn 336 nanojit/NativeARM.h asm_output("%s%s %s, #0x%X", #op, condNames[cond], gpn(rl), decOp2Imm(op2imm));\ gpn 338 nanojit/NativeARM.h asm_output("%s%s%s %s, %s, #0x%X", #op, condNames[cond], (S)?"s":"", gpn(rd), gpn(rl), decOp2Imm(op2imm));\ gpn 356 nanojit/NativeARM.h asm_output("%s%s%s %s, %s", #op, condNames[cond], (S)?"s":"", gpn(rd), gpn(rr));\ gpn 359 nanojit/NativeARM.h asm_output("%s%s %s, %s", #op, condNames[cond], gpn(rl), gpn(rr));\ gpn 361 nanojit/NativeARM.h asm_output("%s%s%s %s, %s, %s", #op, condNames[cond], (S)?"s":"", gpn(rd), gpn(rl), gpn(rr));\ gpn 382 nanojit/NativeARM.h asm_output("%s%s%s %s, %s, %s #%d", #op, condNames[cond], (S)?"s":"", gpn(rd), gpn(rr), shiftNames[sh], (imm));\ gpn 385 nanojit/NativeARM.h asm_output("%s%s %s, %s, %s #%d", #op, condNames[cond], gpn(rl), gpn(rr), shiftNames[sh], (imm));\ gpn 387 nanojit/NativeARM.h asm_output("%s%s%s %s, %s, %s, %s #%d", #op, condNames[cond], (S)?"s":"", gpn(rd), gpn(rl), gpn(rr), shiftNames[sh], (imm));\ gpn 407 nanojit/NativeARM.h asm_output("%s%s%s %s, %s, %s %s", #op, condNames[cond], (S)?"s":"", gpn(rd), gpn(rr), shiftNames[sh], gpn(rs));\ gpn 410 nanojit/NativeARM.h asm_output("%s%s %s, %s, %s %s", #op, condNames[cond], gpn(rl), gpn(rr), shiftNames[sh], gpn(rs));\ gpn 412 nanojit/NativeARM.h asm_output("%s%s%s %s, %s, %s, %s %s", #op, condNames[cond], (S)?"s":"", gpn(rd), gpn(rl), gpn(rr), shiftNames[sh], gpn(rs));\ gpn 482 nanojit/NativeARM.h asm_output("smull %s, %s, %s, %s",gpn(_d),gpn(_d_hi),gpn(_l),gpn(_r)); \ gpn 502 nanojit/NativeARM.h asm_output("mul %s, %s, %s",gpn(_d),gpn(_l),gpn(_r)); } while(0) gpn 593 nanojit/NativeARM.h asm_output("ldr %s, [%s, +%s, LSL #%d]", gpn(_d), gpn(_b), gpn(_x), (_s));\ gpn 608 nanojit/NativeARM.h asm_output("movw%s %s, #0x%x", condNames[_cond], gpn(_d), (_imm)); \ gpn 622 nanojit/NativeARM.h asm_output("movt%s %s, #0x%x", condNames[_cond], gpn(_d), (_imm)); \ gpn 644 nanojit/NativeARM.h asm_output("ldrb %s, [%s,#%d]", gpn(_d),gpn(_n),(_off)); \ gpn 662 nanojit/NativeARM.h asm_output("ldrsh %s, [%s,#%d]", gpn(_d),gpn(_n),(_off)); \ gpn 671 nanojit/NativeARM.h asm_output("str %s, [%s, #%d]", gpn(_d), gpn(_n), (_off)); \ gpn 690 nanojit/NativeARM.h asm_output("push %s",gpn(_r)); } while (0) gpn 704 nanojit/NativeARM.h asm_output("pop %s",gpn(_r));} while (0) gpn 749 nanojit/NativeARM.h asm_output("mov%s %s, #1", condNames[_cond], gpn(_r)); \ gpn 750 nanojit/NativeARM.h asm_output("mov%s %s, #0", condNames[_opp], gpn(_r)); \ gpn 782 nanojit/NativeARM.h asm_output("ldrsh %s,[%s, #%d]",gpn(_d), gpn(_b), (_off)); \ gpn 786 nanojit/NativeARM.h asm_output("mov %s,%d",gpn(_d),(_off)); \ gpn 792 nanojit/NativeARM.h asm_output("ldrsh %s,[%s, #%d]",gpn(_d), gpn(_b), (_off)); \ gpn 812 nanojit/NativeARM.h asm_output("fmdrr %s,%s,%s", gpn(_Dm), gpn(_Rd), gpn(_Rn)); \ gpn 820 nanojit/NativeARM.h asm_output("fmrrd %s,%s,%s", gpn(_Rd), gpn(_Rn), gpn(_Dm)); \ gpn 828 nanojit/NativeARM.h asm_output("fmrdh %s,%s", gpn(_Rd), gpn(_Dn)); \ gpn 836 nanojit/NativeARM.h asm_output("fmrdh %s,%s", gpn(_Rd), gpn(_Dn)); \ gpn 851 nanojit/NativeARM.h asm_output("fstd %s,%s(%d)", gpn(_Dd), gpn(_Rn), _offs); \ gpn 866 nanojit/NativeARM.h asm_output("fldd %s,%s(%d)", gpn(_Dd), gpn(_Rn), _offs); \ gpn 875 nanojit/NativeARM.h asm_output("fsitod %s,%s", gpn(_Dd), gpn(_Sm)); \ gpn 884 nanojit/NativeARM.h asm_output("fuitod %s,%s", gpn(_Dd), gpn(_Sm)); \ gpn 892 nanojit/NativeARM.h asm_output("fmsr %s,%s", gpn(_Sn), gpn(_Rd)); \ gpn 900 nanojit/NativeARM.h asm_output("fnegd %s,%s", gpn(_Dd), gpn(_Dm)); \ gpn 908 nanojit/NativeARM.h asm_output("faddd %s,%s,%s", gpn(_Dd), gpn(_Dn), gpn(_Dm)); \ gpn 916 nanojit/NativeARM.h asm_output("fsubd %s,%s,%s", gpn(_Dd), gpn(_Dn), gpn(_Dm)); \ gpn 924 nanojit/NativeARM.h asm_output("fmuld %s,%s,%s", gpn(_Dd), gpn(_Dn), gpn(_Dm)); \ gpn 932 nanojit/NativeARM.h asm_output("fmuld %s,%s,%s", gpn(_Dd), gpn(_Dn), gpn(_Dm)); \ gpn 948 nanojit/NativeARM.h asm_output("fcmp%sd %s,%s", (((_E)==1)?"e":""), gpn(_Dd), gpn(_Dm)); \ gpn 956 nanojit/NativeARM.h asm_output("fcpyd %s,%s", gpn(_Dd), gpn(_Dm)); \ gpn 355 nanojit/NativePPC.h "%s%s %s,%s,%s", #op, (rc)?".":"", gpn(rd), gpn(ra), gpn(rb)) gpn 357 nanojit/NativePPC.h "%s%s %s,%s,%s", #op, (rc)?".":"", gpn(ra), gpn(rs), gpn(rb)) gpn 359 nanojit/NativePPC.h "%s%s %s,%s,%s", #op, (rc)?".":"", gpn(d), gpn(a), gpn(b)) gpn 361 nanojit/NativePPC.h "%s%s %s,%s,%s", #op, (rc)?".":"", gpn(d), gpn(a), gpn(c)) gpn 399 nanojit/NativePPC.h "mulli %s,%s,%d", gpn(rd), gpn(ra), int16_t(simm)) gpn 401 nanojit/NativePPC.h "mullw %s,%s,%s", gpn(rd), gpn(ra), gpn(rb)) gpn 405 nanojit/NativePPC.h "%s%s %s,%s", #op, (rc)?".":"", gpn(ra), gpn(rs)) gpn 413 nanojit/NativePPC.h "extsw %s,%s", gpn(rd), gpn(rs)) gpn 415 nanojit/NativePPC.h #define NEG(rd, rs) EMIT1(PPC_neg | GPR(rd)<<21 | GPR(rs)<<16, "neg %s,%s", gpn(rd), gpn(rs)) gpn 416 nanojit/NativePPC.h #define FNEG(rd,rs) EMIT1(PPC_fneg | FPR(rd)<<21 | FPR(rs)<<11, "fneg %s,%s", gpn(rd), gpn(rs)) gpn 417 nanojit/NativePPC.h #define FMR(rd,rb) EMIT1(PPC_fmr | FPR(rd)<<21 | FPR(rb)<<11, "fmr %s,%s", gpn(rd), gpn(rb)) gpn 418 nanojit/NativePPC.h #define FCFID(rd,rs) EMIT1(PPC_fcfid | FPR(rd)<<21 | FPR(rs)<<11, "fcfid %s,%s", gpn(rd), gpn(rs)) gpn 424 nanojit/NativePPC.h "mt%s %s", #spr, gpn(rs)) gpn 426 nanojit/NativePPC.h "mf%s %s", #spr, gpn(rd)) gpn 438 nanojit/NativePPC.h EMIT1(PPC_##op | GPR(r)<<21 | GPR(a)<<16 | uint16_t(d), "%s %s,%d(%s)", #op, gpn(r), int16_t(d), gpn(a));\ gpn 443 nanojit/NativePPC.h EMIT1(PPC_##op | FPR(r)<<21 | GPR(b)<<16 | uint16_t(d), "%s %s,%d(%s)", #op, gpn(r), int16_t(d), gpn(b));\ gpn 447 nanojit/NativePPC.h "%s %s,%s,%s", #op, gpn(r), gpn(a), gpn(b)) gpn 449 nanojit/NativePPC.h "%s %s,%s,%s", #op, gpn(r), gpn(a), gpn(b)) gpn 452 nanojit/NativePPC.h "%s %s,%s,%s", #op, gpn(rs), gpn(ra), gpn(rb)) gpn 493 nanojit/NativePPC.h "%s %s,%s,%d (0x%x)", #op, gpn(rd), gpn(ra), int16_t(d), int16_t(d)) gpn 500 nanojit/NativePPC.h "%s %s,%s,%u (0x%x)", #op, gpn(rd), gpn(ra), uint16_t(d), uint16_t(d)) gpn 509 nanojit/NativePPC.h "subi %s,%s,%d", gpn(rd), gpn(ra), (d)) gpn 512 nanojit/NativePPC.h "li %s,%d (0x%x)", gpn(rd), int16_t(v), int16_t(v)) /* addi rd,0,v */ gpn 515 nanojit/NativePPC.h "lis %s,%d (0x%x)", gpn(rd), int16_t(v), int16_t(v)<<16) /* addis, rd,0,v */ gpn 518 nanojit/NativePPC.h #define MFCR(rd) EMIT1(PPC_mfcr | GPR(rd)<<21, "mfcr %s", gpn(rd)) gpn 521 nanojit/NativePPC.h "%s%c cr%d,%s,%s", #op, (l)?'d':'w', (crfd), gpn(ra), gpn(rb)) gpn 529 nanojit/NativePPC.h "cmp%ci cr%d,%s,%d (0x%x)", (l)?'d':'w', (cr), gpn(ra), int16_t(simm), int16_t(simm)) gpn 535 nanojit/NativePPC.h "cmp%ci cr%d,%s,%d (0x%x)", (l)?'d':'w', (cr), gpn(ra), uint16_t(uimm), uint16_t(uimm)) gpn 541 nanojit/NativePPC.h "%s cr%d,%s,%s", #op, (crfd), gpn(ra), gpn(rb)) gpn 549 nanojit/NativePPC.h "rlwinm %s,%s,%d,%d,%d", gpn(rd), gpn(rs), (sh), (mb), (me)) gpn 557 nanojit/NativePPC.h "rldicl %s,%s,%d,%d", gpn(rd), gpn(rs), (sh), (mb)) gpn 562 nanojit/NativePPC.h "clrldi %s,%s,%d", gpn(rd), gpn(rs), (n)) gpn 566 nanojit/NativePPC.h "rldimi %s,%s,%d,%d", gpn(rd), gpn(rs), (sh), (mb)) gpn 571 nanojit/NativePPC.h "insrdi %s,%s,%d,%d", gpn(rd), gpn(rs), (n), (b)) gpn 574 nanojit/NativePPC.h "extrwi %s,%s,%d,%d", gpn(rd), gpn(rs), (n), (b)) gpn 578 nanojit/NativePPC.h "sldi %s,%s,%d", gpn(rd), gpn(rs), (n)) gpn 581 nanojit/NativePPC.h "slwi %s,%s,%d", gpn(rd), gpn(rs), (n)) gpn 583 nanojit/NativePPC.h "slwi %s,%s,%d", gpn(rd), gpn(rs), (n)) gpn 585 nanojit/NativePPC.h "srawi %s,%s,%d", gpn(rd), gpn(rs), (n)) gpn 302 nanojit/NativeSparc.h asm_output("addcc %s, %s, %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 308 nanojit/NativeSparc.h asm_output("add %s, %s, %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 314 nanojit/NativeSparc.h asm_output("and %s, %s, %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 398 nanojit/NativeSparc.h asm_output("fabs %s, %s", gpn(rs2+32), gpn(rd+32)); \ gpn 404 nanojit/NativeSparc.h asm_output("faddd %s, %s, %s", gpn(rs1+32), gpn(rs2+32), gpn(rd+32)); \ gpn 476 nanojit/NativeSparc.h asm_output("fcmpd %s, %s", gpn(rs1+32), gpn(rs2+32)); \ gpn 482 nanojit/NativeSparc.h asm_output("fsubd %s, %s, %s", gpn(rs1+32), gpn(rs2+32), gpn(rd+32)); \ gpn 488 nanojit/NativeSparc.h asm_output("fmuld %s, %s, %s", gpn(rs1+32), gpn(rs2+32), gpn(rd+32)); \ gpn 494 nanojit/NativeSparc.h asm_output("fdivd %s, %s, %s", gpn(rs1+32), gpn(rs2+32), gpn(rd+32)); \ gpn 500 nanojit/NativeSparc.h asm_output("fmovd %s, %s", gpn(rs2+32), gpn(rd+32)); \ gpn 506 nanojit/NativeSparc.h asm_output("fnegd %s, %s", gpn(rs2+32), gpn(rd+32)); \ gpn 512 nanojit/NativeSparc.h asm_output("fitod %s, %s", gpn(rs2+32), gpn(rd+32)); \ gpn 518 nanojit/NativeSparc.h asm_output("jmpl [%s + %s]", gpn(rs1), gpn(rs2)); \ gpn 524 nanojit/NativeSparc.h asm_output("jmpl [%s + %d]", gpn(rs1), simm13); \ gpn 530 nanojit/NativeSparc.h asm_output("ld [%s + %s], %s", gpn(rs1), gpn(rs2), gpn(rd+32)); \ gpn 536 nanojit/NativeSparc.h asm_output("ld [%s + %d], %s", gpn(rs1), simm13, gpn(rd+32)); \ gpn 542 nanojit/NativeSparc.h asm_output("ld [%s + %s], %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 548 nanojit/NativeSparc.h asm_output("ld [%s + %d], %s", gpn(rs1), simm13, gpn(rd)); \ gpn 554 nanojit/NativeSparc.h asm_output("ld [%s + %s], %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 560 nanojit/NativeSparc.h asm_output("ld [%s + %d], %s", gpn(rs1), simm13, gpn(rd)); \ gpn 566 nanojit/NativeSparc.h asm_output("ld [%s + %s], %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 572 nanojit/NativeSparc.h asm_output("ld [%s + %d], %s", gpn(rs1), simm13, gpn(rd)); \ gpn 578 nanojit/NativeSparc.h asm_output("move %s, %s", gpn(rs), gpn(rd)); \ gpn 584 nanojit/NativeSparc.h asm_output("movne %s, %s", gpn(rs), gpn(rd)); \ gpn 590 nanojit/NativeSparc.h asm_output("movl %s, %s", gpn(rs), gpn(rd)); \ gpn 596 nanojit/NativeSparc.h asm_output("movle %s, %s", gpn(rs), gpn(rd)); \ gpn 602 nanojit/NativeSparc.h asm_output("movg %s, %s", gpn(rs), gpn(rd)); \ gpn 608 nanojit/NativeSparc.h asm_output("movge %s, %s", gpn(rs), gpn(rd)); \ gpn 614 nanojit/NativeSparc.h asm_output("movcs %s, %s", gpn(rs), gpn(rd)); \ gpn 620 nanojit/NativeSparc.h asm_output("movleu %s, %s", gpn(rs), gpn(rd)); \ gpn 626 nanojit/NativeSparc.h asm_output("movgu %s, %s", gpn(rs), gpn(rd)); \ gpn 632 nanojit/NativeSparc.h asm_output("movcc %s, %s", gpn(rs), gpn(rd)); \ gpn 638 nanojit/NativeSparc.h asm_output("movvc %s, %s", gpn(rs), gpn(rd)); \ gpn 644 nanojit/NativeSparc.h asm_output("move %d, %s", simm11, gpn(rd)); \ gpn 650 nanojit/NativeSparc.h asm_output("move %d, %s", simm11, gpn(rd)); \ gpn 656 nanojit/NativeSparc.h asm_output("move %d, %s", simm11, gpn(rd)); \ gpn 662 nanojit/NativeSparc.h asm_output("move %d, %s", simm11, gpn(rd)); \ gpn 668 nanojit/NativeSparc.h asm_output("move %d, %s", simm11, gpn(rd)); \ gpn 674 nanojit/NativeSparc.h asm_output("movle %d, %s", simm11, gpn(rd)); \ gpn 680 nanojit/NativeSparc.h asm_output("movle %d, %s", simm11, gpn(rd)); \ gpn 686 nanojit/NativeSparc.h asm_output("movg %d, %s", simm11, gpn(rd)); \ gpn 692 nanojit/NativeSparc.h asm_output("movg %d, %s", simm11, gpn(rd)); \ gpn 698 nanojit/NativeSparc.h asm_output("movge %d, %s", simm11, gpn(rd)); \ gpn 704 nanojit/NativeSparc.h asm_output("movge %d, %s", simm11, gpn(rd)); \ gpn 710 nanojit/NativeSparc.h asm_output("movleu %d, %s", simm11, gpn(rd)); \ gpn 716 nanojit/NativeSparc.h asm_output("movgu %d, %s", simm11, gpn(rd)); \ gpn 722 nanojit/NativeSparc.h asm_output("movcc %d, %s", simm11, gpn(rd)); \ gpn 728 nanojit/NativeSparc.h asm_output("movvs %d, %s", simm11, gpn(rd)); \ gpn 734 nanojit/NativeSparc.h asm_output("mul %s, %s, %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 746 nanojit/NativeSparc.h asm_output("or %s, %d, %s", gpn(rs1), simm13, gpn(rd)); \ gpn 752 nanojit/NativeSparc.h asm_output("or %s, %s, %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 758 nanojit/NativeSparc.h asm_output("orn %s, %s, %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 764 nanojit/NativeSparc.h asm_output("andcc %s, %s, %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 776 nanojit/NativeSparc.h asm_output("save %s, %d, %s", gpn(rs1), simm13, gpn(rd)); \ gpn 782 nanojit/NativeSparc.h asm_output("save %s, %s, %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 788 nanojit/NativeSparc.h asm_output("sethi %p, %s", imm22, gpn(rd)); \ gpn 794 nanojit/NativeSparc.h asm_output("sll %s, %s, %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 800 nanojit/NativeSparc.h asm_output("sra %s, %s, %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 806 nanojit/NativeSparc.h asm_output("srl %s, %s, %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 812 nanojit/NativeSparc.h asm_output("st %s, [%s + %s]", gpn(rd+32), gpn(rs1), gpn(rs2)); \ gpn 818 nanojit/NativeSparc.h asm_output("st %s, [%s + %d]", gpn(rd+32), gpn(rs1), simm13); \ gpn 824 nanojit/NativeSparc.h asm_output("st %s, [%s + %s]", gpn(rd), gpn(rs1), gpn(rs2)); \ gpn 830 nanojit/NativeSparc.h asm_output("st %s, [%s + %d]", gpn(rd), gpn(rs1), simm13); \ gpn 836 nanojit/NativeSparc.h asm_output("subcc %s, %s, %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 842 nanojit/NativeSparc.h asm_output("sub %s, %s, %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 848 nanojit/NativeSparc.h asm_output("sub %s, %d, %s", gpn(rs1), simm13, gpn(rd)); \ gpn 854 nanojit/NativeSparc.h asm_output("xor %s, %s, %s", gpn(rs1), gpn(rs2), gpn(rd)); \ gpn 359 nanojit/NativeX64.cpp #define RQ(r) gpn(r) gpn 358 nanojit/Nativei386.h #define OR(l,r) do { count_alu(); ALU(0x0b, (l),(r)); asm_output("or %s,%s",gpn(l),gpn(r)); } while(0) gpn 359 nanojit/Nativei386.h #define AND(l,r) do { count_alu(); ALU(0x23, (l),(r)); asm_output("and %s,%s",gpn(l),gpn(r)); } while(0) gpn 360 nanojit/Nativei386.h #define XOR(l,r) do { count_alu(); ALU(0x33, (l),(r)); asm_output("xor %s,%s",gpn(l),gpn(r)); } while(0) gpn 361 nanojit/Nativei386.h #define ADD(l,r) do { count_alu(); ALU(0x03, (l),(r)); asm_output("add %s,%s",gpn(l),gpn(r)); } while(0) gpn 362 nanojit/Nativei386.h #define SUB(l,r) do { count_alu(); ALU(0x2b, (l),(r)); asm_output("sub %s,%s",gpn(l),gpn(r)); } while(0) gpn 363 nanojit/Nativei386.h #define MUL(l,r) do { count_alu(); ALU2(0x0faf,(l),(r)); asm_output("mul %s,%s",gpn(l),gpn(r)); } while(0) gpn 364 nanojit/Nativei386.h #define DIV(r) do { count_alu(); ALU(0xf7, (Register)7,(r)); asm_output("idiv edx:eax, %s",gpn(r)); } while(0) gpn 365 nanojit/Nativei386.h #define NOT(r) do { count_alu(); ALU(0xf7, (Register)2,(r)); asm_output("not %s",gpn(r)); } while(0) gpn 366 nanojit/Nativei386.h #define NEG(r) do { count_alu(); ALU(0xf7, (Register)3,(r)); asm_output("neg %s",gpn(r)); } while(0) gpn 367 nanojit/Nativei386.h #define SHR(r,s) do { count_alu(); ALU(0xd3, (Register)5,(r)); asm_output("shr %s,%s",gpn(r),gpn(s)); } while(0) gpn 368 nanojit/Nativei386.h #define SAR(r,s) do { count_alu(); ALU(0xd3, (Register)7,(r)); asm_output("sar %s,%s",gpn(r),gpn(s)); } while(0) gpn 369 nanojit/Nativei386.h #define SHL(r,s) do { count_alu(); ALU(0xd3, (Register)4,(r)); asm_output("shl %s,%s",gpn(r),gpn(s)); } while(0) gpn 377 nanojit/Nativei386.h #define SHLi(r,i) do { count_alu(); SHIFT(4,r,i); asm_output("shl %s,%d", gpn(r),i); } while(0) gpn 378 nanojit/Nativei386.h #define SHRi(r,i) do { count_alu(); SHIFT(5,r,i); asm_output("shr %s,%d", gpn(r),i); } while(0) gpn 379 nanojit/Nativei386.h #define SARi(r,i) do { count_alu(); SHIFT(7,r,i); asm_output("sar %s,%d", gpn(r),i); } while(0) gpn 381 nanojit/Nativei386.h #define MOVZX8(d,s) do { count_alu(); ALU2(0x0fb6,d,s); asm_output("movzx %s,%s", gpn(d),gpn(s)); } while(0) gpn 383 nanojit/Nativei386.h #define SUBi(r,i) do { count_alu(); ALUi(0x2d,r,i); asm_output("sub %s,%d",gpn(r),i); } while(0) gpn 384 nanojit/Nativei386.h #define ADDi(r,i) do { count_alu(); ALUi(0x05,r,i); asm_output("add %s,%d",gpn(r),i); } while(0) gpn 385 nanojit/Nativei386.h #define ANDi(r,i) do { count_alu(); ALUi(0x25,r,i); asm_output("and %s,%d",gpn(r),i); } while(0) gpn 386 nanojit/Nativei386.h #define ORi(r,i) do { count_alu(); ALUi(0x0d,r,i); asm_output("or %s,%d",gpn(r),i); } while(0) gpn 387 nanojit/Nativei386.h #define XORi(r,i) do { count_alu(); ALUi(0x35,r,i); asm_output("xor %s,%d",gpn(r),i); } while(0) gpn 389 nanojit/Nativei386.h #define ADDmi(d,b,i) do { count_alust(); ALUmi(0x05, d, b, i); asm_output("add %d(%s), %d", d, gpn(b), i); } while(0) gpn 391 nanojit/Nativei386.h #define TEST(d,s) do { count_alu(); ALU(0x85,d,s); asm_output("test %s,%s",gpn(d),gpn(s)); } while(0) gpn 392 nanojit/Nativei386.h #define CMP(l,r) do { count_alu(); ALU(0x3b, (l),(r)); asm_output("cmp %s,%s",gpn(l),gpn(r)); } while(0) gpn 393 nanojit/Nativei386.h #define CMPi(r,i) do { count_alu(); ALUi(0x3d,r,i); asm_output("cmp %s,%d",gpn(r),i); } while(0) gpn 395 nanojit/Nativei386.h #define MR(d,s) do { count_mov(); ALU(0x8b,d,s); asm_output("mov %s,%s",gpn(d),gpn(s)); } while(0) gpn 396 nanojit/Nativei386.h #define LEA(r,d,b) do { count_alu(); ALUm(0x8d, r,d,b); asm_output("lea %s,%d(%s)",gpn(r),d,gpn(b)); } while(0) gpn 399 nanojit/Nativei386.h #define LEAmi4(r,d,i) do { count_alu(); IMM32(d); *(--_nIns) = (2<<6)|((uint8_t)i<<3)|5; *(--_nIns) = (0<<6)|((uint8_t)r<<3)|4; *(--_nIns) = 0x8d; asm_output("lea %s, %p(%s*4)", gpn(r), (void*)d, gpn(i)); } while(0) gpn 408 nanojit/Nativei386.h #define SETE(r) do { count_alu(); ALU2(0x0f94,(r),(r)); asm_output("sete %s",gpn(r)); } while(0) gpn 409 nanojit/Nativei386.h #define SETNP(r) do { count_alu(); ALU2(0x0f9B,(r),(r)); asm_output("setnp %s",gpn(r)); } while(0) gpn 410 nanojit/Nativei386.h #define SETL(r) do { count_alu(); ALU2(0x0f9C,(r),(r)); asm_output("setl %s",gpn(r)); } while(0) gpn 411 nanojit/Nativei386.h #define SETLE(r) do { count_alu(); ALU2(0x0f9E,(r),(r)); asm_output("setle %s",gpn(r)); } while(0) gpn 412 nanojit/Nativei386.h #define SETG(r) do { count_alu(); ALU2(0x0f9F,(r),(r)); asm_output("setg %s",gpn(r)); } while(0) gpn 413 nanojit/Nativei386.h #define SETGE(r) do { count_alu(); ALU2(0x0f9D,(r),(r)); asm_output("setge %s",gpn(r)); } while(0) gpn 414 nanojit/Nativei386.h #define SETB(r) do { count_alu(); ALU2(0x0f92,(r),(r)); asm_output("setb %s",gpn(r)); } while(0) gpn 415 nanojit/Nativei386.h #define SETBE(r) do { count_alu(); ALU2(0x0f96,(r),(r)); asm_output("setbe %s",gpn(r)); } while(0) gpn 416 nanojit/Nativei386.h #define SETA(r) do { count_alu(); ALU2(0x0f97,(r),(r)); asm_output("seta %s",gpn(r)); } while(0) gpn 417 nanojit/Nativei386.h #define SETAE(r) do { count_alu(); ALU2(0x0f93,(r),(r)); asm_output("setae %s",gpn(r)); } while(0) gpn 418 nanojit/Nativei386.h #define SETO(r) do { count_alu(); ALU2(0x0f92,(r),(r)); asm_output("seto %s",gpn(r)); } while(0) gpn 420 nanojit/Nativei386.h #define MREQ(dr,sr) do { count_alu(); ALU2(0x0f44,dr,sr); asm_output("cmove %s,%s", gpn(dr),gpn(sr)); } while(0) gpn 421 nanojit/Nativei386.h #define MRNE(dr,sr) do { count_alu(); ALU2(0x0f45,dr,sr); asm_output("cmovne %s,%s", gpn(dr),gpn(sr)); } while(0) gpn 422 nanojit/Nativei386.h #define MRL(dr,sr) do { count_alu(); ALU2(0x0f4C,dr,sr); asm_output("cmovl %s,%s", gpn(dr),gpn(sr)); } while(0) gpn 423 nanojit/Nativei386.h #define MRLE(dr,sr) do { count_alu(); ALU2(0x0f4E,dr,sr); asm_output("cmovle %s,%s", gpn(dr),gpn(sr)); } while(0) gpn 424 nanojit/Nativei386.h #define MRG(dr,sr) do { count_alu(); ALU2(0x0f4F,dr,sr); asm_output("cmovg %s,%s", gpn(dr),gpn(sr)); } while(0) gpn 425 nanojit/Nativei386.h #define MRGE(dr,sr) do { count_alu(); ALU2(0x0f4D,dr,sr); asm_output("cmovge %s,%s", gpn(dr),gpn(sr)); } while(0) gpn 426 nanojit/Nativei386.h #define MRB(dr,sr) do { count_alu(); ALU2(0x0f42,dr,sr); asm_output("cmovb %s,%s", gpn(dr),gpn(sr)); } while(0) gpn 427 nanojit/Nativei386.h #define MRBE(dr,sr) do { count_alu(); ALU2(0x0f46,dr,sr); asm_output("cmovbe %s,%s", gpn(dr),gpn(sr)); } while(0) gpn 428 nanojit/Nativei386.h #define MRA(dr,sr) do { count_alu(); ALU2(0x0f47,dr,sr); asm_output("cmova %s,%s", gpn(dr),gpn(sr)); } while(0) gpn 429 nanojit/Nativei386.h #define MRAE(dr,sr) do { count_alu(); ALU2(0x0f43,dr,sr); asm_output("cmovae %s,%s", gpn(dr),gpn(sr)); } while(0) gpn 430 nanojit/Nativei386.h #define MRNO(dr,sr) do { count_alu(); ALU2(0x0f41,dr,sr); asm_output("cmovno %s,%s", gpn(dr),gpn(sr)); } while(0) gpn 439 nanojit/Nativei386.h asm_output("mov %s,%d(%s)",gpn(reg),disp,gpn(base)); } while(0) gpn 444 nanojit/Nativei386.h asm_output("mov %s,0(%lx)",gpn(reg),(unsigned long)addr); \ gpn 453 nanojit/Nativei386.h asm_output("mov %s,%d(%s+%s*%c)",gpn(reg),disp,gpn(base),gpn(index),SIBIDX(scale)); \ gpn 462 nanojit/Nativei386.h #define LD16S(r,d,b) do { count_ld(); ALU2m(0x0fbf,r,d,b); asm_output("movsx16 %s,%d(%s)", gpn(r),d,gpn(b)); } while(0) gpn 464 nanojit/Nativei386.h #define LD16Sdm(r,addr) do { count_ld(); ALU2dm(0x0fbf,r,addr); asm_output("movsx16 %s,0(%lx)", gpn(r),(unsigned long)addr); } while (0) gpn 469 nanojit/Nativei386.h asm_output("movsx16 %s,%d(%s+%s*%c)",gpn(r),disp,gpn(base),gpn(index),SIBIDX(scale)); \ gpn 473 nanojit/Nativei386.h #define LD16Z(r,d,b) do { count_ld(); ALU2m(0x0fb7,r,d,b); asm_output("movzx16 %s,%d(%s)", gpn(r),d,gpn(b)); } while(0) gpn 475 nanojit/Nativei386.h #define LD16Zdm(r,addr) do { count_ld(); ALU2dm(0x0fb7,r,addr); asm_output("movzx16 %s,0(%lx)", gpn(r),(unsigned long)addr); } while (0) gpn 480 nanojit/Nativei386.h asm_output("movzx16 %s,%d(%s+%s*%c)",gpn(r),disp,gpn(base),gpn(index),SIBIDX(scale)); \ gpn 484 nanojit/Nativei386.h #define LD8Z(r,d,b) do { count_ld(); ALU2m(0x0fb6,r,d,b); asm_output("movzx8 %s,%d(%s)", gpn(r),d,gpn(b)); } while(0) gpn 489 nanojit/Nativei386.h asm_output("movzx8 %s,0(%lx)", gpn(r),(long unsigned)addr); \ gpn 495 nanojit/Nativei386.h asm_output("movzx8 %s,%d(%s+%s*%c)",gpn(r),disp,gpn(base),gpn(index),SIBIDX(scale)); \ gpn 499 nanojit/Nativei386.h #define LD8S(r,d,b) do { count_ld(); ALU2m(0x0fbe,r,d,b); asm_output("movsx8 %s,%d(%s)", gpn(r),d,gpn(b)); } while(0) gpn 504 nanojit/Nativei386.h asm_output("movsx8 %s,0(%lx)", gpn(r),(long unsigned)addr); \ gpn 510 nanojit/Nativei386.h asm_output("movsx8 %s,%d(%s+%s*%c)",gpn(r),disp,gpn(base),gpn(index),SIBIDX(scale)); \ gpn 519 nanojit/Nativei386.h asm_output("mov %s,%d",gpn(r),i); } while(0) gpn 526 nanojit/Nativei386.h asm_output("mov8 %d(%s),%s",disp,base==UnknownReg?"0":gpn(base),gpn(reg)); } while(0) gpn 531 nanojit/Nativei386.h asm_output("mov16 %d(%s),%s",disp,base==UnknownReg?"0":gpn(base),gpn(reg)); } while(0) gpn 536 nanojit/Nativei386.h asm_output("mov %d(%s),%s",disp,base==UnknownReg?"0":gpn(base),gpn(reg)); } while(0) gpn 544 nanojit/Nativei386.h asm_output("mov8 %d(%s),%d",disp,gpn(base),imm); } while(0) gpn 553 nanojit/Nativei386.h asm_output("mov16 %d(%s),%d",disp,gpn(base),imm); } while(0) gpn 561 nanojit/Nativei386.h asm_output("mov %d(%s),%d",disp,gpn(base),imm); } while(0) gpn 588 nanojit/Nativei386.h asm_output("push %s",gpn(r)); } while(0) gpn 593 nanojit/Nativei386.h asm_output("push %d(%s)",d,gpn(b)); } while(0) gpn 600 nanojit/Nativei386.h asm_output("pop %s",gpn(r)); } while(0) gpn 658 nanojit/Nativei386.h asm_output("jmp *(%s)", gpn(r)); } while (0) gpn 667 nanojit/Nativei386.h asm_output("jmp *(%s*%d+%p)", gpn(x), 1<<(ss), (void*)(addr)); } while (0) gpn 717 nanojit/Nativei386.h asm_output("movsd %s,%d(%s)",gpn(r),(d),gpn(b)); \ gpn 729 nanojit/Nativei386.h asm_output("movsd %s,(#%p) // =%f",gpn(r),(void*)daddr,*daddr); \ gpn 735 nanojit/Nativei386.h asm_output("movsd %d(%s),%s",(d),gpn(b),gpn(r)); \ gpn 741 nanojit/Nativei386.h asm_output("movq %s,%d(%s)",gpn(r),d,gpn(b)); \ gpn 747 nanojit/Nativei386.h asm_output("movq %d(%s),%s",(d),gpn(b),gpn(r)); \ gpn 753 nanojit/Nativei386.h asm_output("movss %s,%d(%s)",gpn(r),d,gpn(b)); \ gpn 759 nanojit/Nativei386.h asm_output("movss %d(%s),%s",(d),gpn(b),gpn(r)); \ gpn 765 nanojit/Nativei386.h asm_output("cvtsi2sd %s,%s",gpn(xr),gpn(gr)); \ gpn 771 nanojit/Nativei386.h asm_output("cvtsd2ss %s,%s",gpn(xr),gpn(gr)); \ gpn 777 nanojit/Nativei386.h asm_output("cvtss2sd %s,%s",gpn(xr),gpn(gr)); \ gpn 783 nanojit/Nativei386.h asm_output("cvtdq2pd %s,%s",gpn(dstr),gpn(srcr)); \ gpn 797 nanojit/Nativei386.h asm_output("movd %s,%s",gpn(d),gpn(s)); \ gpn 804 nanojit/Nativei386.h asm_output("movsd %s,%s",gpn(rd),gpn(rs)); \ gpn 811 nanojit/Nativei386.h asm_output("movd %d(%s),%s", d, gpn(b), gpn(xrs));\ gpn 818 nanojit/Nativei386.h asm_output("addsd %s,%s",gpn(rd),gpn(rs)); \ gpn 831 nanojit/Nativei386.h asm_output("addsd %s,%p // =%f",gpn(r),(void*)daddr,*daddr); \ gpn 838 nanojit/Nativei386.h asm_output("subsd %s,%s",gpn(rd),gpn(rs)); \ gpn 844 nanojit/Nativei386.h asm_output("mulsd %s,%s",gpn(rd),gpn(rs)); \ gpn 850 nanojit/Nativei386.h asm_output("divsd %s,%s",gpn(rd),gpn(rs)); \ gpn 856 nanojit/Nativei386.h asm_output("ucomisd %s,%s",gpn(rl),gpn(rr)); \ gpn 863 nanojit/Nativei386.h asm_output("cvtsi2sd %s,%d(%s)",gpn(xr),(d),gpn(b)); \ gpn 874 nanojit/Nativei386.h asm_output("xorpd %s,[0x%p]",gpn(r),(void*)(maskaddr));\ gpn 880 nanojit/Nativei386.h asm_output("xorpd %s,%s",gpn(rd),gpn(rs)); \ gpn 922 nanojit/Nativei386.h #define FST32(p,d,b) do { count_stq(); FPUm(0xd902|(p), d, b); asm_output("fst%s32 %d(%s)",((p)?"p":""),d,gpn(b)); if (p) fpu_pop(); } while(0) gpn 923 nanojit/Nativei386.h #define FSTQ(p,d,b) do { count_stq(); FPUm(0xdd02|(p), d, b); asm_output("fst%sq %d(%s)",((p)?"p":""),d,gpn(b)); if (p) fpu_pop(); } while(0) gpn 925 nanojit/Nativei386.h #define FCOM(p,d,b) do { count_fpuld(); FPUm(0xdc02|(p), d, b); asm_output("fcom%s %d(%s)",((p)?"p":""),d,gpn(b)); if (p) fpu_pop(); } while(0) gpn 926 nanojit/Nativei386.h #define FLD32(d,b) do { count_ldq(); FPUm(0xd900, d, b); asm_output("fld32 %d(%s)",d,gpn(b)); fpu_push();} while(0) gpn 927 nanojit/Nativei386.h #define FLDQ(d,b) do { count_ldq(); FPUm(0xdd00, d, b); asm_output("fldq %d(%s)",d,gpn(b)); fpu_push();} while(0) gpn 928 nanojit/Nativei386.h #define FILDQ(d,b) do { count_fpuld(); FPUm(0xdf05, d, b); asm_output("fildq %d(%s)",d,gpn(b)); fpu_push(); } while(0) gpn 929 nanojit/Nativei386.h #define FILD(d,b) do { count_fpuld(); FPUm(0xdb00, d, b); asm_output("fild %d(%s)",d,gpn(b)); fpu_push(); } while(0) gpn 930 nanojit/Nativei386.h #define FADD(d,b) do { count_fpu(); FPUm(0xdc00, d, b); asm_output("fadd %d(%s)",d,gpn(b)); } while(0) gpn 931 nanojit/Nativei386.h #define FSUB(d,b) do { count_fpu(); FPUm(0xdc04, d, b); asm_output("fsub %d(%s)",d,gpn(b)); } while(0) gpn 932 nanojit/Nativei386.h #define FSUBR(d,b) do { count_fpu(); FPUm(0xdc05, d, b); asm_output("fsubr %d(%s)",d,gpn(b)); } while(0) gpn 933 nanojit/Nativei386.h #define FMUL(d,b) do { count_fpu(); FPUm(0xdc01, d, b); asm_output("fmul %d(%s)",d,gpn(b)); } while(0) gpn 934 nanojit/Nativei386.h #define FDIV(d,b) do { count_fpu(); FPUm(0xdc06, d, b); asm_output("fdiv %d(%s)",d,gpn(b)); } while(0) gpn 935 nanojit/Nativei386.h #define FDIVR(d,b) do { count_fpu(); FPUm(0xdc07, d, b); asm_output("fdivr %d(%s)",d,gpn(b)); } while(0) gpn 959 nanojit/Nativei386.h verbose_only(asm_output("call %s",gpn(r));) \