Lines Matching refs:is64
1302 static const HChar* nameIRegOrSP ( Bool is64, UInt iregNo ) in nameIRegOrSP() argument
1304 vassert(is64 == True || is64 == False); in nameIRegOrSP()
1305 return is64 ? nameIReg64orSP(iregNo) : nameIReg32orSP(iregNo); in nameIRegOrSP()
1308 static const HChar* nameIRegOrZR ( Bool is64, UInt iregNo ) in nameIRegOrZR() argument
1310 vassert(is64 == True || is64 == False); in nameIRegOrZR()
1311 return is64 ? nameIReg64orZR(iregNo) : nameIReg32orZR(iregNo); in nameIRegOrZR()
1314 static IRExpr* getIRegOrZR ( Bool is64, UInt iregNo ) in getIRegOrZR() argument
1316 vassert(is64 == True || is64 == False); in getIRegOrZR()
1317 return is64 ? getIReg64orZR(iregNo) : getIReg32orZR(iregNo); in getIRegOrZR()
1320 static void putIRegOrZR ( Bool is64, UInt iregNo, IRExpr* e ) in putIRegOrZR() argument
1322 vassert(is64 == True || is64 == False); in putIRegOrZR()
1323 if (is64) putIReg64orZR(iregNo, e); else putIReg32orZR(iregNo, e); in putIRegOrZR()
1855 void setFlags_ADD_SUB ( Bool is64, Bool isSUB, IRTemp argL, IRTemp argR ) in setFlags_ADD_SUB() argument
1860 if (is64) { in setFlags_ADD_SUB()
1871 /**/ if ( isSUB && is64) { cc_op = ARM64G_CC_OP_SUB64; } in setFlags_ADD_SUB()
1872 else if ( isSUB && !is64) { cc_op = ARM64G_CC_OP_SUB32; } in setFlags_ADD_SUB()
1873 else if (!isSUB && is64) { cc_op = ARM64G_CC_OP_ADD64; } in setFlags_ADD_SUB()
1874 else if (!isSUB && !is64) { cc_op = ARM64G_CC_OP_ADD32; } in setFlags_ADD_SUB()
1881 void setFlags_ADC_SBC ( Bool is64, Bool isSBC, in setFlags_ADC_SBC() argument
1887 if (is64) { in setFlags_ADC_SBC()
1900 /**/ if ( isSBC && is64) { cc_op = ARM64G_CC_OP_SBC64; } in setFlags_ADC_SBC()
1901 else if ( isSBC && !is64) { cc_op = ARM64G_CC_OP_SBC32; } in setFlags_ADC_SBC()
1902 else if (!isSBC && is64) { cc_op = ARM64G_CC_OP_ADC64; } in setFlags_ADC_SBC()
1903 else if (!isSBC && !is64) { cc_op = ARM64G_CC_OP_ADC32; } in setFlags_ADC_SBC()
1913 Bool is64, Bool isSUB, in setFlags_ADD_SUB_conditionally() argument
1931 /**/ if ( isSUB && is64) { t_op = ARM64G_CC_OP_SUB64; } in setFlags_ADD_SUB_conditionally()
1932 else if ( isSUB && !is64) { t_op = ARM64G_CC_OP_SUB32; } in setFlags_ADD_SUB_conditionally()
1933 else if (!isSUB && is64) { t_op = ARM64G_CC_OP_ADD64; } in setFlags_ADD_SUB_conditionally()
1934 else if (!isSUB && !is64) { t_op = ARM64G_CC_OP_ADD32; } in setFlags_ADD_SUB_conditionally()
1937 if (is64) { in setFlags_ADD_SUB_conditionally()
1971 void setFlags_LOGIC ( Bool is64, IRTemp res ) in setFlags_LOGIC() argument
1976 if (is64) { in setFlags_LOGIC()
2405 Bool is64 = INSN(31,31) == 1; in dis_ARM64_data_processing_immediate() local
2418 if (is64) { in dis_ARM64_data_processing_immediate()
2487 Bool is64 = INSN(31,31) == 1; in dis_ARM64_data_processing_immediate() local
2496 if (N == 1 && !is64) in dis_ARM64_data_processing_immediate()
2499 N, immS, immR, True, is64 ? 64 : 32); in dis_ARM64_data_processing_immediate()
2508 if (is64) { in dis_ARM64_data_processing_immediate()
2551 Bool is64 = INSN(31,31) == 1; in dis_ARM64_data_processing_immediate() local
2556 if (subopc == BITS2(0,1) || (!is64 && hw >= 2)) { in dis_ARM64_data_processing_immediate()
2560 if (!is64) in dis_ARM64_data_processing_immediate()
2564 putIRegOrZR(is64, dd, is64 ? mkU64(imm64) : mkU32((UInt)imm64)); in dis_ARM64_data_processing_immediate()
2565 DIP("movz %s, 0x%llx\n", nameIRegOrZR(is64, dd), imm64); in dis_ARM64_data_processing_immediate()
2569 if (!is64) in dis_ARM64_data_processing_immediate()
2571 putIRegOrZR(is64, dd, is64 ? mkU64(imm64) : mkU32((UInt)imm64)); in dis_ARM64_data_processing_immediate()
2572 DIP("movn %s, 0x%llx\n", nameIRegOrZR(is64, dd), imm64); in dis_ARM64_data_processing_immediate()
2578 if (is64) { in dis_ARM64_data_processing_immediate()
2657 Bool is64 = sf == 1; in dis_ARM64_data_processing_immediate() local
2658 IRType ty = is64 ? Ity_I64 : Ity_I32; in dis_ARM64_data_processing_immediate()
2665 assign(dst, inZero ? mkU(ty,0) : getIRegOrZR(is64, dd)); in dis_ARM64_data_processing_immediate()
2666 assign(src, getIRegOrZR(is64, nn)); in dis_ARM64_data_processing_immediate()
2678 putIRegOrZR(is64, dd, mkexpr(res)); in dis_ARM64_data_processing_immediate()
2680 nm, nameIRegOrZR(is64, dd), nameIRegOrZR(is64, nn), immR, immS); in dis_ARM64_data_processing_immediate()
2691 Bool is64 = INSN(31,31) == 1; in dis_ARM64_data_processing_immediate() local
2699 if (!is64 && imm6 >= 32) in dis_ARM64_data_processing_immediate()
2702 IRType ty = is64 ? Ity_I64 : Ity_I32; in dis_ARM64_data_processing_immediate()
2706 assign(srcHi, getIRegOrZR(is64, nn)); in dis_ARM64_data_processing_immediate()
2707 assign(srcLo, getIRegOrZR(is64, mm)); in dis_ARM64_data_processing_immediate()
2717 putIRegOrZR(is64, dd, mkexpr(res)); in dis_ARM64_data_processing_immediate()
2719 nameIRegOrZR(is64,dd), in dis_ARM64_data_processing_immediate()
2720 nameIRegOrZR(is64,nn), nameIRegOrZR(is64,mm), imm6); in dis_ARM64_data_processing_immediate()
2754 static IRTemp getShiftedIRegOrZR ( Bool is64, in getShiftedIRegOrZR() argument
2759 vassert(sh_amt < (is64 ? 64 : 32)); in getShiftedIRegOrZR()
2760 IRType ty = is64 ? Ity_I64 : Ity_I32; in getShiftedIRegOrZR()
2762 assign(t0, getIRegOrZR(is64, regNo)); in getShiftedIRegOrZR()
2817 Bool is64 = bX == 1; in dis_ARM64_data_processing_register() local
2818 IRType ty = is64 ? Ity_I64 : Ity_I32; in dis_ARM64_data_processing_register()
2819 if ((!is64 && imm6 > 31) || sh == BITS2(1,1)) { in dis_ARM64_data_processing_register()
2823 assign(argL, getIRegOrZR(is64, rN)); in dis_ARM64_data_processing_register()
2824 IRTemp argR = getShiftedIRegOrZR(is64, sh, imm6, rM, False); in dis_ARM64_data_processing_register()
2828 if (rD != 31) putIRegOrZR(is64, rD, mkexpr(res)); in dis_ARM64_data_processing_register()
2830 setFlags_ADD_SUB(is64, isSUB, argL, argR); in dis_ARM64_data_processing_register()
2834 nameIRegOrZR(is64, rD), nameIRegOrZR(is64, rN), in dis_ARM64_data_processing_register()
2835 nameIRegOrZR(is64, rM), nameSH(sh), imm6); in dis_ARM64_data_processing_register()
2860 Bool is64 = bX == 1; in dis_ARM64_data_processing_register() local
2861 IRType ty = is64 ? Ity_I64 : Ity_I32; in dis_ARM64_data_processing_register()
2865 is64 ? mk_arm64g_calculate_flag_c() in dis_ARM64_data_processing_register()
2869 assign(argL, getIRegOrZR(is64, rN)); in dis_ARM64_data_processing_register()
2871 assign(argR, getIRegOrZR(is64, rM)); in dis_ARM64_data_processing_register()
2876 IRExpr* one = is64 ? mkU64(1) : mkU32(1); in dis_ARM64_data_processing_register()
2877 IROp xorOp = is64 ? Iop_Xor64 : Iop_Xor32; in dis_ARM64_data_processing_register()
2889 if (rD != 31) putIRegOrZR(is64, rD, mkexpr(res)); in dis_ARM64_data_processing_register()
2892 setFlags_ADC_SBC(is64, isSUB, argL, argR, oldC); in dis_ARM64_data_processing_register()
2897 nameIRegOrZR(is64, rD), nameIRegOrZR(is64, rN), in dis_ARM64_data_processing_register()
2898 nameIRegOrZR(is64, rM)); in dis_ARM64_data_processing_register()
2924 Bool is64 = bX == 1; in dis_ARM64_data_processing_register() local
2925 IRType ty = is64 ? Ity_I64 : Ity_I32; in dis_ARM64_data_processing_register()
2926 if (!is64 && imm6 > 31) { in dis_ARM64_data_processing_register()
2930 assign(argL, getIRegOrZR(is64, rN)); in dis_ARM64_data_processing_register()
2931 IRTemp argR = getShiftedIRegOrZR(is64, sh, imm6, rM, bN == 1); in dis_ARM64_data_processing_register()
2942 setFlags_LOGIC(is64, res); in dis_ARM64_data_processing_register()
2944 putIRegOrZR(is64, rD, mkexpr(res)); in dis_ARM64_data_processing_register()
2952 DIP("mov %s, %s\n", nameIRegOrZR(is64, rD), in dis_ARM64_data_processing_register()
2953 nameIRegOrZR(is64, rM)); in dis_ARM64_data_processing_register()
2956 nameIRegOrZR(is64, rD), nameIRegOrZR(is64, rN), in dis_ARM64_data_processing_register()
2957 nameIRegOrZR(is64, rM), nameSH(sh), imm6); in dis_ARM64_data_processing_register()
2989 Bool is64 = INSN(31,31) == 1; in dis_ARM64_data_processing_register() local
2995 if (is64) { in dis_ARM64_data_processing_register()
3010 nameIRegOrZR(is64, dd), nameIRegOrZR(is64, nn), in dis_ARM64_data_processing_register()
3011 nameIRegOrZR(is64, mm), nameIRegOrZR(is64, aa)); in dis_ARM64_data_processing_register()
3024 Bool is64 = INSN(31,31) == 1; in dis_ARM64_data_processing_register() local
3032 IRType ty = is64 ? Ity_I64 : Ity_I32; in dis_ARM64_data_processing_register()
3033 IRExpr* argL = getIRegOrZR(is64, nn); in dis_ARM64_data_processing_register()
3034 IRExpr* argR = getIRegOrZR(is64, mm); in dis_ARM64_data_processing_register()
3051 is64, dd, in dis_ARM64_data_processing_register()
3057 nameIRegOrZR(is64, dd), nameIRegOrZR(is64, nn), in dis_ARM64_data_processing_register()
3058 nameIRegOrZR(is64, mm), nameCC(cond)); in dis_ARM64_data_processing_register()
3096 Bool is64 = INSN(31,31) == 1; in dis_ARM64_data_processing_register() local
3120 if (is64) { in dis_ARM64_data_processing_register()
3131 if (is64) { in dis_ARM64_data_processing_register()
3152 if (is64) { in dis_ARM64_data_processing_register()
3173 setCC ? nameIRegOrZR(is64, dd) : nameIRegOrSP(is64, dd), in dis_ARM64_data_processing_register()
3174 nameIRegOrSP(is64, nn), nameIRegOrSP(is64, mm), in dis_ARM64_data_processing_register()
3193 Bool is64 = INSN(31,31) == 1; in dis_ARM64_data_processing_register() local
3203 IRType ty = is64 ? Ity_I64 : Ity_I32; in dis_ARM64_data_processing_register()
3207 if (is64) { in dis_ARM64_data_processing_register()
3214 setFlags_ADD_SUB_conditionally(is64, isSUB, condT, argL, argR, nzcv); in dis_ARM64_data_processing_register()
3217 isSUB ? 'p' : 'n', nameIRegOrZR(is64, nn), in dis_ARM64_data_processing_register()
3232 Bool is64 = INSN(31,31) == 1; in dis_ARM64_data_processing_register() local
3242 IRType ty = is64 ? Ity_I64 : Ity_I32; in dis_ARM64_data_processing_register()
3246 if (is64) { in dis_ARM64_data_processing_register()
3253 setFlags_ADD_SUB_conditionally(is64, isSUB, condT, argL, argR, nzcv); in dis_ARM64_data_processing_register()
3256 isSUB ? 'p' : 'n', nameIRegOrZR(is64, nn), in dis_ARM64_data_processing_register()
3257 nameIRegOrZR(is64, mm), nzcv, nameCC(cond)); in dis_ARM64_data_processing_register()
3290 Bool is64 = ix == 1 || ix == 3 || ix == 5 || ix == 7; in dis_ARM64_data_processing_register() local
3314 } else if (is64) { in dis_ARM64_data_processing_register()
3324 nameIRegOrZR(is64,dd), nameIRegOrZR(is64,nn)); in dis_ARM64_data_processing_register()
3337 Bool is64 = INSN(31,31) == 1; in dis_ARM64_data_processing_register() local
3345 if (is64) { in dis_ARM64_data_processing_register()
3362 if (is64) { in dis_ARM64_data_processing_register()
3374 nameIRegOrZR(is64, dd), nameIRegOrZR(is64, nn)); in dis_ARM64_data_processing_register()
3387 Bool is64 = INSN(31,31) == 1; in dis_ARM64_data_processing_register() local
3392 IRType ty = is64 ? Ity_I64 : Ity_I32; in dis_ARM64_data_processing_register()
3397 assign(srcL, getIRegOrZR(is64, nn)); in dis_ARM64_data_processing_register()
3399 mkU64(is64 ? 63 : 31))); in dis_ARM64_data_processing_register()
3415 IRExpr* width = mkU64(is64 ? 64: 32); in dis_ARM64_data_processing_register()
3430 putIRegOrZR(is64, dd, mkexpr(res)); in dis_ARM64_data_processing_register()
3434 names[op], nameIRegOrZR(is64,dd), in dis_ARM64_data_processing_register()
3435 nameIRegOrZR(is64,nn), nameIRegOrZR(is64,mm)); in dis_ARM64_data_processing_register()
3446 Bool is64 = INSN(31,31) == 1; in dis_ARM64_data_processing_register() local
3452 putIRegOrZR(is64, dd, binop(is64 ? Iop_DivS64 : Iop_DivS32, in dis_ARM64_data_processing_register()
3453 getIRegOrZR(is64, nn), in dis_ARM64_data_processing_register()
3454 getIRegOrZR(is64, mm))); in dis_ARM64_data_processing_register()
3456 putIRegOrZR(is64, dd, binop(is64 ? Iop_DivU64 : Iop_DivU32, in dis_ARM64_data_processing_register()
3457 getIRegOrZR(is64, nn), in dis_ARM64_data_processing_register()
3458 getIRegOrZR(is64, mm))); in dis_ARM64_data_processing_register()
3461 nameIRegOrZR(is64, dd), in dis_ARM64_data_processing_register()
3462 nameIRegOrZR(is64, nn), nameIRegOrZR(is64, mm)); in dis_ARM64_data_processing_register()
5102 Bool is64 = INSN(22,22) == 0; in dis_ARM64_load_store() local
5117 if (is64) { in dis_ARM64_load_store()
5127 if (is64) { in dis_ARM64_load_store()
5135 else if (szLg2 == 2 && is64) { in dis_ARM64_load_store()
5145 ch, nameIRegOrZR(is64, tt), nameIReg64orSP(nn), simm9); in dis_ARM64_load_store()
5178 Bool is64 = INSN(22,22) == 0; in dis_ARM64_load_store() local
5192 if (is64) { in dis_ARM64_load_store()
5202 if (is64) { in dis_ARM64_load_store()
5210 else if (szLg2 == 2 && is64) { in dis_ARM64_load_store()
5219 ch, nameIRegOrZR(is64, tt), nameIReg64orSP(nn), (Long)simm9); in dis_ARM64_load_store()
6530 Bool is64 = INSN(31,31) == 1; in dis_ARM64_branch_etc() local
6536 if (is64) { in dis_ARM64_branch_etc()
6551 bIfZ ? "" : "n", nameIRegOrZR(is64, rT), in dis_ARM64_branch_etc()