Home | History | Annotate | Download | only in priv

Lines Matching defs:op8

708 static IROp mkSizedOp ( IRType ty, IROp op8 )
712 vassert(op8 == Iop_Add8 || op8 == Iop_Sub8
713 || op8 == Iop_Mul8
714 || op8 == Iop_Or8 || op8 == Iop_And8 || op8 == Iop_Xor8
715 || op8 == Iop_Shl8 || op8 == Iop_Shr8 || op8 == Iop_Sar8
716 || op8 == Iop_CmpEQ8 || op8 == Iop_CmpNE8
717 || op8 == Iop_CasCmpNE8
718 || op8 == Iop_Not8);
720 return adj + op8;
858 static Bool isAddSub ( IROp op8 )
860 return toBool(op8 == Iop_Add8 || op8 == Iop_Sub8);
863 static Bool isLogic ( IROp op8 )
865 return toBool(op8 == Iop_And8 || op8 == Iop_Or8 || op8 == Iop_Xor8);
915 void setFlags_DEP1_DEP2 ( IROp op8, IRTemp dep1, IRTemp dep2, IRType ty )
921 switch (op8) {
924 default: ppIROp(op8);
939 void setFlags_DEP1 ( IROp op8, IRTemp dep1, IRType ty )
945 switch (op8) {
949 default: ppIROp(op8);
1800 IROp op8,
1818 vassert(op8 == Iop_Add8 || op8 == Iop_Sub8);
1827 if ((op8 == Iop_Xor8 || (op8 == Iop_Sub8 && addSubCarry))
1834 if (addSubCarry && op8 == Iop_Add8) {
1839 if (addSubCarry && op8 == Iop_Sub8) {
1844 assign( dst1, binop(mkSizedOp(ty,op8), mkexpr(dst0), mkexpr(src)) );
1845 if (isAddSub(op8))
1846 setFlags_DEP1_DEP2(op8, dst0, src, ty);
1848 setFlags_DEP1(op8, dst1, ty);
1863 if (addSubCarry && op8 == Iop_Add8) {
1868 if (addSubCarry && op8 == Iop_Sub8) {
1873 assign( dst1, binop(mkSizedOp(ty,op8), mkexpr(dst0), mkexpr(src)) );
1874 if (isAddSub(op8))
1875 setFlags_DEP1_DEP2(op8, dst0, src, ty);
1877 setFlags_DEP1(op8, dst1, ty);
1913 IROp op8,
1931 vassert(op8 == Iop_Add8 || op8 == Iop_Sub8);
1940 if ((op8 == Iop_Xor8 || (op8 == Iop_Sub8 && addSubCarry))
1947 if (addSubCarry && op8 == Iop_Add8) {
1952 if (addSubCarry && op8 == Iop_Sub8) {
1957 assign(dst1, binop(mkSizedOp(ty,op8), mkexpr(dst0), mkexpr(src)));
1958 if (isAddSub(op8))
1959 setFlags_DEP1_DEP2(op8, dst0, src, ty);
1961 setFlags_DEP1(op8, dst1, ty);
1978 if (addSubCarry && op8 == Iop_Add8) {
1989 if (addSubCarry && op8 == Iop_Sub8) {
2000 assign(dst1, binop(mkSizedOp(ty,op8), mkexpr(dst0), mkexpr(src)));
2012 if (isAddSub(op8))
2013 setFlags_DEP1_DEP2(op8, dst0, src, ty);
2015 setFlags_DEP1(op8, dst1, ty);
2117 IROp op8,
2130 if (isAddSub(op8) && !carrying) {
2131 assign(dst1, binop(mkSizedOp(ty,op8), mkexpr(dst0), mkexpr(src)) );
2132 setFlags_DEP1_DEP2(op8, dst0, src, ty);
2135 if (isLogic(op8)) {
2137 assign(dst1, binop(mkSizedOp(ty,op8), mkexpr(dst0), mkexpr(src)) );
2138 setFlags_DEP1(op8, dst1, ty);
2141 if (op8 == Iop_Add8 && carrying) {
2146 if (op8 == Iop_Sub8 && carrying) {
2267 IROp op8 = Iop_INVALID;
2271 case 0: op8 = Iop_Add8; break; case 1: op8 = Iop_Or8; break;
2274 case 4: op8 = Iop_And8; break; case 5: op8 = Iop_Sub8; break;
2275 case 6: op8 = Iop_Xor8; break; case 7: op8 = Iop_Sub8; break;
2294 assign(dst1, binop(mkSizedOp(ty,op8), mkexpr(dst0), mkexpr(src)));
2295 if (isAddSub(op8))
2296 setFlags_DEP1_DEP2(op8, dst0, src, ty);
2298 setFlags_DEP1(op8, dst1, ty);
2335 assign(dst1, binop(mkSizedOp(ty,op8), mkexpr(dst0), mkexpr(src)));
2345 if (isAddSub(op8))
2346 setFlags_DEP1_DEP2(op8, dst0, src, ty);
2348 setFlags_DEP1(op8, dst1, ty);