Lines Matching refs:setflags
603 if setflags then in EmulateADDRdSPImm()
662 if setflags then in EmulateMOVRdSP()
727 if setflags then in EmulateMOVRdRm()
741 bool setflags; in EmulateMOVRdRm() local
746 setflags = false; in EmulateMOVRdRm()
753 setflags = true; in EmulateMOVRdRm()
760 setflags = BitIsSet(opcode, 20); in EmulateMOVRdRm()
762 if (setflags && (BadReg(Rd) || BadReg(Rm))) in EmulateMOVRdRm()
765 if (!setflags && (Rd == 15 || Rm == 15 || (Rd == 13 && Rm == 13))) in EmulateMOVRdRm()
771 setflags = BitIsSet(opcode, 20); in EmulateMOVRdRm()
774 if (Rd == 15 && setflags) in EmulateMOVRdRm()
791 if (!WriteCoreRegOptionalFlags(context, result, Rd, setflags)) in EmulateMOVRdRm()
813 if setflags then in EmulateMOVRdImm()
828 bool setflags; in EmulateMOVRdImm() local
832 setflags = !InITBlock(); in EmulateMOVRdImm()
840 setflags = BitIsSet(opcode, 20); in EmulateMOVRdImm()
851 setflags = false; in EmulateMOVRdImm()
867 setflags = BitIsSet (opcode, 20); in EmulateMOVRdImm()
871 if ((Rd == 15) && setflags) in EmulateMOVRdImm()
880 setflags = false; in EmulateMOVRdImm()
901 if (!WriteCoreRegOptionalFlags(context, result, Rd, setflags, carry)) in EmulateMOVRdImm()
923 if setflags then in EmulateMUL()
937 bool setflags; in EmulateMUL() local
947 setflags = !InITBlock(); in EmulateMUL()
960 setflags = false; in EmulateMUL()
973 setflags = BitIsSet (opcode, 20); in EmulateMUL()
1018 if (setflags) in EmulateMUL()
1053 if setflags then in EmulateMVNImm()
1066 bool setflags; in EmulateMVNImm() local
1070 setflags = BitIsSet(opcode, 20); in EmulateMVNImm()
1075 setflags = BitIsSet(opcode, 20); in EmulateMVNImm()
1079 if (Rd == 15 && setflags) in EmulateMVNImm()
1092 if (!WriteCoreRegOptionalFlags(context, result, Rd, setflags, carry)) in EmulateMVNImm()
1114 if setflags then in EmulateMVNReg()
1128 bool setflags; in EmulateMVNReg() local
1134 setflags = !InITBlock(); in EmulateMVNReg()
1143 setflags = BitIsSet(opcode, 20); in EmulateMVNReg()
1152 setflags = BitIsSet(opcode, 20); in EmulateMVNReg()
1173 if (!WriteCoreRegOptionalFlags(context, result, Rd, setflags, carry)) in EmulateMVNReg()
1290 if setflags then in EmulateADDSPImm()
1375 if setflags then in EmulateADDSPRm()
1700 if setflags then in EmulateSUBR7IPImm()
1752 if setflags then in EmulateSUBIPSPImm()
1806 if setflags then in EmulateSUBSPImm()
1822 bool setflags; in EmulateSUBSPImm() local
1827 setflags = false; in EmulateSUBSPImm()
1832 setflags = BitIsSet(opcode, 20); in EmulateSUBSPImm()
1834 if (Rd == 15 && setflags) in EmulateSUBSPImm()
1836 if (Rd == 15 && !setflags) in EmulateSUBSPImm()
1841 setflags = false; in EmulateSUBSPImm()
1848 setflags = BitIsSet(opcode, 20); in EmulateSUBSPImm()
1852 if (Rd == 15 && setflags) in EmulateSUBSPImm()
1874 … if (!WriteCoreRegOptionalFlags(context, res.result, Rd, setflags, res.carry_out, res.overflow)) in EmulateSUBSPImm()
2454 if setflags then in EmulateADDImmThumb()
2467 bool setflags; in EmulateADDImmThumb() local
2478 setflags = !InITBlock(); in EmulateADDImmThumb()
2487 setflags = !InITBlock(); in EmulateADDImmThumb()
2498 setflags = BitIsSet (opcode, 20); in EmulateADDImmThumb()
2514 setflags = false; in EmulateADDImmThumb()
2550 … if (!WriteCoreRegOptionalFlags (context, res.result, d, setflags, res.carry_out, res.overflow)) in EmulateADDImmThumb()
2571 if setflags then in EmulateADDImmARM()
2584 bool setflags; in EmulateADDImmARM() local
2590 setflags = BitIsSet(opcode, 20); in EmulateADDImmARM()
2610 … if (!WriteCoreRegOptionalFlags(context, res.result, Rd, setflags, res.carry_out, res.overflow)) in EmulateADDImmARM()
2631 if setflags then in EmulateADDReg()
2645 bool setflags; in EmulateADDReg() local
2652 setflags = !InITBlock(); in EmulateADDReg()
2659 setflags = false; in EmulateADDReg()
2671 setflags = BitIsSet(opcode, 20); in EmulateADDReg()
2701 … if (!WriteCoreRegOptionalFlags(context, res.result, Rd, setflags, res.carry_out, res.overflow)) in EmulateADDReg()
2968 if setflags then in EmulateASRImm()
2992 if setflags then in EmulateASRReg()
3017 if setflags then in EmulateLSLImm()
3041 if setflags then in EmulateLSLReg()
3066 if setflags then in EmulateLSRImm()
3090 if setflags then in EmulateLSRReg()
3115 if setflags then in EmulateRORImm()
3139 if setflags then in EmulateRORReg()
3166 if setflags then in EmulateRRX()
3193 bool setflags; in EmulateShiftImm() local
3213 setflags = !InITBlock(); in EmulateShiftImm()
3224 setflags = BitIsSet(opcode, 20); in EmulateShiftImm()
3232 setflags = BitIsSet(opcode, 20); in EmulateShiftImm()
3260 if (!WriteCoreRegOptionalFlags(context, result, Rd, setflags, carry)) in EmulateShiftImm()
3282 bool setflags; in EmulateShiftReg() local
3288 setflags = !InITBlock(); in EmulateShiftReg()
3294 setflags = BitIsSet(opcode, 20); in EmulateShiftReg()
3302 setflags = BitIsSet(opcode, 20); in EmulateShiftReg()
3331 if (!WriteCoreRegOptionalFlags(context, result, Rd, setflags, carry)) in EmulateShiftReg()
5244 if setflags then in EmulateADCImm()
5257 bool setflags; in EmulateADCImm() local
5263 setflags = BitIsSet(opcode, 20); in EmulateADCImm()
5271 setflags = BitIsSet(opcode, 20); in EmulateADCImm()
5274 if (Rd == 15 && setflags) in EmulateADCImm()
5292 … if (!WriteCoreRegOptionalFlags(context, res.result, Rd, setflags, res.carry_out, res.overflow)) in EmulateADCImm()
5314 if setflags then in EmulateADCReg()
5328 bool setflags; in EmulateADCReg() local
5334 setflags = !InITBlock(); in EmulateADCReg()
5342 setflags = BitIsSet(opcode, 20); in EmulateADCReg()
5351 setflags = BitIsSet(opcode, 20); in EmulateADCReg()
5354 if (Rd == 15 && setflags) in EmulateADCReg()
5380 … if (!WriteCoreRegOptionalFlags(context, res.result, Rd, setflags, res.carry_out, res.overflow)) in EmulateADCReg()
5465 if setflags then in EmulateANDImm()
5478 bool setflags; in EmulateANDImm() local
5485 setflags = BitIsSet(opcode, 20); in EmulateANDImm()
5488 if (Rd == 15 && setflags) in EmulateANDImm()
5490 if (Rd == 13 || (Rd == 15 && !setflags) || BadReg(Rn)) in EmulateANDImm()
5496 setflags = BitIsSet(opcode, 20); in EmulateANDImm()
5499 if (Rd == 15 && setflags) in EmulateANDImm()
5517 if (!WriteCoreRegOptionalFlags(context, result, Rd, setflags, carry)) in EmulateANDImm()
5539 if setflags then in EmulateANDReg()
5553 bool setflags; in EmulateANDReg() local
5560 setflags = !InITBlock(); in EmulateANDReg()
5568 setflags = BitIsSet(opcode, 20); in EmulateANDReg()
5571 if (Rd == 15 && setflags) in EmulateANDReg()
5573 if (Rd == 13 || (Rd == 15 && !setflags) || BadReg(Rn) || BadReg(Rm)) in EmulateANDReg()
5580 setflags = BitIsSet(opcode, 20); in EmulateANDReg()
5583 if (Rd == 15 && setflags) in EmulateANDReg()
5609 if (!WriteCoreRegOptionalFlags(context, result, Rd, setflags, carry)) in EmulateANDReg()
5630 if setflags then in EmulateBICImm()
5643 bool setflags; in EmulateBICImm() local
5650 setflags = BitIsSet(opcode, 20); in EmulateBICImm()
5658 setflags = BitIsSet(opcode, 20); in EmulateBICImm()
5662 if (Rd == 15 && setflags) in EmulateBICImm()
5680 if (!WriteCoreRegOptionalFlags(context, result, Rd, setflags, carry)) in EmulateBICImm()
5702 if setflags then in EmulateBICReg()
5716 bool setflags; in EmulateBICReg() local
5723 setflags = !InITBlock(); in EmulateBICReg()
5731 setflags = BitIsSet(opcode, 20); in EmulateBICReg()
5740 setflags = BitIsSet(opcode, 20); in EmulateBICReg()
5744 if (Rd == 15 && setflags) in EmulateBICReg()
5770 if (!WriteCoreRegOptionalFlags(context, result, Rd, setflags, carry)) in EmulateBICReg()
8264 if setflags then in EmulateEORImm()
8277 bool setflags; in EmulateEORImm() local
8284 setflags = BitIsSet(opcode, 20); in EmulateEORImm()
8287 if (Rd == 15 && setflags) in EmulateEORImm()
8289 if (Rd == 13 || (Rd == 15 && !setflags) || BadReg(Rn)) in EmulateEORImm()
8295 setflags = BitIsSet(opcode, 20); in EmulateEORImm()
8299 if (Rd == 15 && setflags) in EmulateEORImm()
8317 if (!WriteCoreRegOptionalFlags(context, result, Rd, setflags, carry)) in EmulateEORImm()
8339 if setflags then in EmulateEORReg()
8353 bool setflags; in EmulateEORReg() local
8360 setflags = !InITBlock(); in EmulateEORReg()
8368 setflags = BitIsSet(opcode, 20); in EmulateEORReg()
8371 if (Rd == 15 && setflags) in EmulateEORReg()
8373 if (Rd == 13 || (Rd == 15 && !setflags) || BadReg(Rn) || BadReg(Rm)) in EmulateEORReg()
8380 setflags = BitIsSet(opcode, 20); in EmulateEORReg()
8384 if (Rd == 15 && setflags) in EmulateEORReg()
8410 if (!WriteCoreRegOptionalFlags(context, result, Rd, setflags, carry)) in EmulateEORReg()
8431 if setflags then in EmulateORRImm()
8444 bool setflags; in EmulateORRImm() local
8451 setflags = BitIsSet(opcode, 20); in EmulateORRImm()
8462 setflags = BitIsSet(opcode, 20); in EmulateORRImm()
8465 if (Rd == 15 && setflags) in EmulateORRImm()
8483 if (!WriteCoreRegOptionalFlags(context, result, Rd, setflags, carry)) in EmulateORRImm()
8505 if setflags then in EmulateORRReg()
8519 bool setflags; in EmulateORRReg() local
8526 setflags = !InITBlock(); in EmulateORRReg()
8534 setflags = BitIsSet(opcode, 20); in EmulateORRReg()
8546 setflags = BitIsSet(opcode, 20); in EmulateORRReg()
8549 if (Rd == 15 && setflags) in EmulateORRReg()
8575 if (!WriteCoreRegOptionalFlags(context, result, Rd, setflags, carry)) in EmulateORRReg()
8595 if setflags then in EmulateRSBImm()
8606 bool setflags; in EmulateRSBImm() local
8612 setflags = !InITBlock(); in EmulateRSBImm()
8618 setflags = BitIsSet(opcode, 20); in EmulateRSBImm()
8626 setflags = BitIsSet(opcode, 20); in EmulateRSBImm()
8630 if (Rd == 15 && setflags) in EmulateRSBImm()
8647 if (!WriteCoreRegOptionalFlags(context, res.result, Rd, setflags, res.carry_out, res.overflow)) in EmulateRSBImm()
8668 if setflags then in EmulateRSBReg()
8680 bool setflags; in EmulateRSBReg() local
8688 setflags = BitIsSet(opcode, 20); in EmulateRSBReg()
8698 setflags = BitIsSet(opcode, 20); in EmulateRSBReg()
8702 if (Rd == 15 && setflags) in EmulateRSBReg()
8726 if (!WriteCoreRegOptionalFlags(context, res.result, Rd, setflags, res.carry_out, res.overflow)) in EmulateRSBReg()
8747 if setflags then in EmulateRSCImm()
8758 bool setflags; in EmulateRSCImm() local
8764 setflags = BitIsSet(opcode, 20); in EmulateRSCImm()
8768 if (Rd == 15 && setflags) in EmulateRSCImm()
8785 if (!WriteCoreRegOptionalFlags(context, res.result, Rd, setflags, res.carry_out, res.overflow)) in EmulateRSCImm()
8807 if setflags then in EmulateRSCReg()
8819 bool setflags; in EmulateRSCReg() local
8827 setflags = BitIsSet(opcode, 20); in EmulateRSCReg()
8831 if (Rd == 15 && setflags) in EmulateRSCReg()
8855 if (!WriteCoreRegOptionalFlags(context, res.result, Rd, setflags, res.carry_out, res.overflow)) in EmulateRSCReg()
8876 if setflags then in EmulateSBCImm()
8887 bool setflags; in EmulateSBCImm() local
8893 setflags = BitIsSet(opcode, 20); in EmulateSBCImm()
8901 setflags = BitIsSet(opcode, 20); in EmulateSBCImm()
8905 if (Rd == 15 && setflags) in EmulateSBCImm()
8922 if (!WriteCoreRegOptionalFlags(context, res.result, Rd, setflags, res.carry_out, res.overflow)) in EmulateSBCImm()
8944 if setflags then in EmulateSBCReg()
8956 bool setflags; in EmulateSBCReg() local
8963 setflags = !InITBlock(); in EmulateSBCReg()
8971 setflags = BitIsSet(opcode, 20); in EmulateSBCReg()
8980 setflags = BitIsSet(opcode, 20); in EmulateSBCReg()
8984 if (Rd == 15 && setflags) in EmulateSBCReg()
9008 if (!WriteCoreRegOptionalFlags(context, res.result, Rd, setflags, res.carry_out, res.overflow)) in EmulateSBCReg()
9025 if setflags then in EmulateSUBImmThumb()
9036 bool setflags; in EmulateSUBImmThumb() local
9042 setflags = !InITBlock(); in EmulateSUBImmThumb()
9047 setflags = !InITBlock(); in EmulateSUBImmThumb()
9053 setflags = BitIsSet(opcode, 20); in EmulateSUBImmThumb()
9057 if (Rd == 15 && setflags) in EmulateSUBImmThumb()
9065 if (Rd == 13 || (Rd == 15 && !setflags) || Rn == 15) in EmulateSUBImmThumb()
9071 setflags = BitIsSet(opcode, 20); in EmulateSUBImmThumb()
9099 if (!WriteCoreRegOptionalFlags(context, res.result, Rd, setflags, res.carry_out, res.overflow)) in EmulateSUBImmThumb()
9119 if setflags then in EmulateSUBImmARM()
9130 bool setflags; in EmulateSUBImmARM() local
9136 setflags = BitIsSet(opcode, 20); in EmulateSUBImmARM()
9140 if (Rn == 15 && !setflags) in EmulateSUBImmARM()
9148 if (Rd == 15 && setflags) in EmulateSUBImmARM()
9165 if (!WriteCoreRegOptionalFlags(context, res.result, Rd, setflags, res.carry_out, res.overflow)) in EmulateSUBImmARM()
9439 if setflags then in EmulateSUBSPReg()
9452 bool setflags; in EmulateSUBSPReg() local
9462 setflags = BitIsSet (opcode, 20); in EmulateSUBSPReg()
9480 setflags = BitIsSet (opcode, 20); in EmulateSUBSPReg()
9483 if (d == 15 && setflags) in EmulateSUBSPReg()
9518 …if (!WriteCoreRegOptionalFlags(context, res.result, dwarf_r0 + d, setflags, res.carry_out, res.ove… in EmulateSUBSPReg()
9536 if setflags then in EmulateADDRegShift()
9551 bool setflags; in EmulateADDRegShift() local
9564 setflags = BitIsSet (opcode, 20); in EmulateADDRegShift()
9617 if (setflags) in EmulateADDRegShift()
9636 if setflags then in EmulateSUBReg()
9650 bool setflags; in EmulateSUBReg() local
9661 setflags = !InITBlock(); in EmulateSUBReg()
9676 setflags = BitIsSet (opcode, 20); in EmulateSUBReg()
9693 setflags = BitIsSet (opcode, 20); in EmulateSUBReg()
9696 if ((d == 15) && setflags) in EmulateSUBReg()
9742 …if (!WriteCoreRegOptionalFlags (context, res.result, dwarf_r0 + d, setflags, res.carry_out, res.ov… in EmulateSUBReg()
13352 bool setflags, in WriteCoreRegOptionalFlags() argument
13380 if (setflags) in WriteCoreRegOptionalFlags()