Lines Matching refs:TmpInst
847 MCInst TmpInst; in ProcessInstruction() local
848 TmpInst.setOpcode((Opcode == PPC::DCBTx || Opcode == PPC::DCBTT) ? in ProcessInstruction()
850 TmpInst.addOperand(MCOperand::createImm( in ProcessInstruction()
852 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
853 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
854 Inst = TmpInst; in ProcessInstruction()
859 MCInst TmpInst; in ProcessInstruction() local
860 TmpInst.setOpcode(PPC::DCBT); in ProcessInstruction()
861 TmpInst.addOperand(Inst.getOperand(2)); in ProcessInstruction()
862 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
863 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
864 Inst = TmpInst; in ProcessInstruction()
869 MCInst TmpInst; in ProcessInstruction() local
870 TmpInst.setOpcode(PPC::DCBTST); in ProcessInstruction()
871 TmpInst.addOperand(Inst.getOperand(2)); in ProcessInstruction()
872 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
873 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
874 Inst = TmpInst; in ProcessInstruction()
878 MCInst TmpInst; in ProcessInstruction() local
879 TmpInst.setOpcode(PPC::LA); in ProcessInstruction()
880 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
881 TmpInst.addOperand(Inst.getOperand(2)); in ProcessInstruction()
882 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
883 Inst = TmpInst; in ProcessInstruction()
887 MCInst TmpInst; in ProcessInstruction() local
888 TmpInst.setOpcode(PPC::ADDI); in ProcessInstruction()
889 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
890 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
891 addNegOperand(TmpInst, Inst.getOperand(2), getContext()); in ProcessInstruction()
892 Inst = TmpInst; in ProcessInstruction()
896 MCInst TmpInst; in ProcessInstruction() local
897 TmpInst.setOpcode(PPC::ADDIS); in ProcessInstruction()
898 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
899 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
900 addNegOperand(TmpInst, Inst.getOperand(2), getContext()); in ProcessInstruction()
901 Inst = TmpInst; in ProcessInstruction()
905 MCInst TmpInst; in ProcessInstruction() local
906 TmpInst.setOpcode(PPC::ADDIC); in ProcessInstruction()
907 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
908 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
909 addNegOperand(TmpInst, Inst.getOperand(2), getContext()); in ProcessInstruction()
910 Inst = TmpInst; in ProcessInstruction()
914 MCInst TmpInst; in ProcessInstruction() local
915 TmpInst.setOpcode(PPC::ADDICo); in ProcessInstruction()
916 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
917 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
918 addNegOperand(TmpInst, Inst.getOperand(2), getContext()); in ProcessInstruction()
919 Inst = TmpInst; in ProcessInstruction()
924 MCInst TmpInst; in ProcessInstruction() local
927 TmpInst.setOpcode(Opcode == PPC::EXTLWI? PPC::RLWINM : PPC::RLWINMo); in ProcessInstruction()
928 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
929 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
930 TmpInst.addOperand(MCOperand::createImm(B)); in ProcessInstruction()
931 TmpInst.addOperand(MCOperand::createImm(0)); in ProcessInstruction()
932 TmpInst.addOperand(MCOperand::createImm(N - 1)); in ProcessInstruction()
933 Inst = TmpInst; in ProcessInstruction()
938 MCInst TmpInst; in ProcessInstruction() local
941 TmpInst.setOpcode(Opcode == PPC::EXTRWI? PPC::RLWINM : PPC::RLWINMo); in ProcessInstruction()
942 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
943 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
944 TmpInst.addOperand(MCOperand::createImm(B + N)); in ProcessInstruction()
945 TmpInst.addOperand(MCOperand::createImm(32 - N)); in ProcessInstruction()
946 TmpInst.addOperand(MCOperand::createImm(31)); in ProcessInstruction()
947 Inst = TmpInst; in ProcessInstruction()
952 MCInst TmpInst; in ProcessInstruction() local
955 TmpInst.setOpcode(Opcode == PPC::INSLWI? PPC::RLWIMI : PPC::RLWIMIo); in ProcessInstruction()
956 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
957 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
958 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
959 TmpInst.addOperand(MCOperand::createImm(32 - B)); in ProcessInstruction()
960 TmpInst.addOperand(MCOperand::createImm(B)); in ProcessInstruction()
961 TmpInst.addOperand(MCOperand::createImm((B + N) - 1)); in ProcessInstruction()
962 Inst = TmpInst; in ProcessInstruction()
967 MCInst TmpInst; in ProcessInstruction() local
970 TmpInst.setOpcode(Opcode == PPC::INSRWI? PPC::RLWIMI : PPC::RLWIMIo); in ProcessInstruction()
971 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
972 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
973 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
974 TmpInst.addOperand(MCOperand::createImm(32 - (B + N))); in ProcessInstruction()
975 TmpInst.addOperand(MCOperand::createImm(B)); in ProcessInstruction()
976 TmpInst.addOperand(MCOperand::createImm((B + N) - 1)); in ProcessInstruction()
977 Inst = TmpInst; in ProcessInstruction()
982 MCInst TmpInst; in ProcessInstruction() local
984 TmpInst.setOpcode(Opcode == PPC::ROTRWI? PPC::RLWINM : PPC::RLWINMo); in ProcessInstruction()
985 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
986 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
987 TmpInst.addOperand(MCOperand::createImm(32 - N)); in ProcessInstruction()
988 TmpInst.addOperand(MCOperand::createImm(0)); in ProcessInstruction()
989 TmpInst.addOperand(MCOperand::createImm(31)); in ProcessInstruction()
990 Inst = TmpInst; in ProcessInstruction()
995 MCInst TmpInst; in ProcessInstruction() local
997 TmpInst.setOpcode(Opcode == PPC::SLWI? PPC::RLWINM : PPC::RLWINMo); in ProcessInstruction()
998 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
999 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1000 TmpInst.addOperand(MCOperand::createImm(N)); in ProcessInstruction()
1001 TmpInst.addOperand(MCOperand::createImm(0)); in ProcessInstruction()
1002 TmpInst.addOperand(MCOperand::createImm(31 - N)); in ProcessInstruction()
1003 Inst = TmpInst; in ProcessInstruction()
1008 MCInst TmpInst; in ProcessInstruction() local
1010 TmpInst.setOpcode(Opcode == PPC::SRWI? PPC::RLWINM : PPC::RLWINMo); in ProcessInstruction()
1011 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1012 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1013 TmpInst.addOperand(MCOperand::createImm(32 - N)); in ProcessInstruction()
1014 TmpInst.addOperand(MCOperand::createImm(N)); in ProcessInstruction()
1015 TmpInst.addOperand(MCOperand::createImm(31)); in ProcessInstruction()
1016 Inst = TmpInst; in ProcessInstruction()
1021 MCInst TmpInst; in ProcessInstruction() local
1023 TmpInst.setOpcode(Opcode == PPC::CLRRWI? PPC::RLWINM : PPC::RLWINMo); in ProcessInstruction()
1024 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1025 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1026 TmpInst.addOperand(MCOperand::createImm(0)); in ProcessInstruction()
1027 TmpInst.addOperand(MCOperand::createImm(0)); in ProcessInstruction()
1028 TmpInst.addOperand(MCOperand::createImm(31 - N)); in ProcessInstruction()
1029 Inst = TmpInst; in ProcessInstruction()
1034 MCInst TmpInst; in ProcessInstruction() local
1037 TmpInst.setOpcode(Opcode == PPC::CLRLSLWI? PPC::RLWINM : PPC::RLWINMo); in ProcessInstruction()
1038 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1039 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1040 TmpInst.addOperand(MCOperand::createImm(N)); in ProcessInstruction()
1041 TmpInst.addOperand(MCOperand::createImm(B - N)); in ProcessInstruction()
1042 TmpInst.addOperand(MCOperand::createImm(31 - N)); in ProcessInstruction()
1043 Inst = TmpInst; in ProcessInstruction()
1048 MCInst TmpInst; in ProcessInstruction() local
1051 TmpInst.setOpcode(Opcode == PPC::EXTLDI? PPC::RLDICR : PPC::RLDICRo); in ProcessInstruction()
1052 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1053 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1054 TmpInst.addOperand(MCOperand::createImm(B)); in ProcessInstruction()
1055 TmpInst.addOperand(MCOperand::createImm(N - 1)); in ProcessInstruction()
1056 Inst = TmpInst; in ProcessInstruction()
1061 MCInst TmpInst; in ProcessInstruction() local
1064 TmpInst.setOpcode(Opcode == PPC::EXTRDI? PPC::RLDICL : PPC::RLDICLo); in ProcessInstruction()
1065 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1066 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1067 TmpInst.addOperand(MCOperand::createImm(B + N)); in ProcessInstruction()
1068 TmpInst.addOperand(MCOperand::createImm(64 - N)); in ProcessInstruction()
1069 Inst = TmpInst; in ProcessInstruction()
1074 MCInst TmpInst; in ProcessInstruction() local
1077 TmpInst.setOpcode(Opcode == PPC::INSRDI? PPC::RLDIMI : PPC::RLDIMIo); in ProcessInstruction()
1078 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1079 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1080 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1081 TmpInst.addOperand(MCOperand::createImm(64 - (B + N))); in ProcessInstruction()
1082 TmpInst.addOperand(MCOperand::createImm(B)); in ProcessInstruction()
1083 Inst = TmpInst; in ProcessInstruction()
1088 MCInst TmpInst; in ProcessInstruction() local
1090 TmpInst.setOpcode(Opcode == PPC::ROTRDI? PPC::RLDICL : PPC::RLDICLo); in ProcessInstruction()
1091 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1092 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1093 TmpInst.addOperand(MCOperand::createImm(64 - N)); in ProcessInstruction()
1094 TmpInst.addOperand(MCOperand::createImm(0)); in ProcessInstruction()
1095 Inst = TmpInst; in ProcessInstruction()
1100 MCInst TmpInst; in ProcessInstruction() local
1102 TmpInst.setOpcode(Opcode == PPC::SLDI? PPC::RLDICR : PPC::RLDICRo); in ProcessInstruction()
1103 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1104 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1105 TmpInst.addOperand(MCOperand::createImm(N)); in ProcessInstruction()
1106 TmpInst.addOperand(MCOperand::createImm(63 - N)); in ProcessInstruction()
1107 Inst = TmpInst; in ProcessInstruction()
1112 MCInst TmpInst; in ProcessInstruction() local
1114 TmpInst.setOpcode(Opcode == PPC::SRDI? PPC::RLDICL : PPC::RLDICLo); in ProcessInstruction()
1115 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1116 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1117 TmpInst.addOperand(MCOperand::createImm(64 - N)); in ProcessInstruction()
1118 TmpInst.addOperand(MCOperand::createImm(N)); in ProcessInstruction()
1119 Inst = TmpInst; in ProcessInstruction()
1124 MCInst TmpInst; in ProcessInstruction() local
1126 TmpInst.setOpcode(Opcode == PPC::CLRRDI? PPC::RLDICR : PPC::RLDICRo); in ProcessInstruction()
1127 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1128 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1129 TmpInst.addOperand(MCOperand::createImm(0)); in ProcessInstruction()
1130 TmpInst.addOperand(MCOperand::createImm(63 - N)); in ProcessInstruction()
1131 Inst = TmpInst; in ProcessInstruction()
1136 MCInst TmpInst; in ProcessInstruction() local
1139 TmpInst.setOpcode(Opcode == PPC::CLRLSLDI? PPC::RLDIC : PPC::RLDICo); in ProcessInstruction()
1140 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1141 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1142 TmpInst.addOperand(MCOperand::createImm(N)); in ProcessInstruction()
1143 TmpInst.addOperand(MCOperand::createImm(B - N)); in ProcessInstruction()
1144 Inst = TmpInst; in ProcessInstruction()
1154 MCInst TmpInst; in ProcessInstruction() local
1155 TmpInst.setOpcode(Opcode == PPC::RLWINMbm ? PPC::RLWINM : PPC::RLWINMo); in ProcessInstruction()
1156 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1157 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1158 TmpInst.addOperand(Inst.getOperand(2)); in ProcessInstruction()
1159 TmpInst.addOperand(MCOperand::createImm(MB)); in ProcessInstruction()
1160 TmpInst.addOperand(MCOperand::createImm(ME)); in ProcessInstruction()
1161 Inst = TmpInst; in ProcessInstruction()
1171 MCInst TmpInst; in ProcessInstruction() local
1172 TmpInst.setOpcode(Opcode == PPC::RLWIMIbm ? PPC::RLWIMI : PPC::RLWIMIo); in ProcessInstruction()
1173 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1174 TmpInst.addOperand(Inst.getOperand(0)); // The tied operand. in ProcessInstruction()
1175 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1176 TmpInst.addOperand(Inst.getOperand(2)); in ProcessInstruction()
1177 TmpInst.addOperand(MCOperand::createImm(MB)); in ProcessInstruction()
1178 TmpInst.addOperand(MCOperand::createImm(ME)); in ProcessInstruction()
1179 Inst = TmpInst; in ProcessInstruction()
1189 MCInst TmpInst; in ProcessInstruction() local
1190 TmpInst.setOpcode(Opcode == PPC::RLWNMbm ? PPC::RLWNM : PPC::RLWNMo); in ProcessInstruction()
1191 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1192 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1193 TmpInst.addOperand(Inst.getOperand(2)); in ProcessInstruction()
1194 TmpInst.addOperand(MCOperand::createImm(MB)); in ProcessInstruction()
1195 TmpInst.addOperand(MCOperand::createImm(ME)); in ProcessInstruction()
1196 Inst = TmpInst; in ProcessInstruction()
1208 MCInst TmpInst; in ProcessInstruction() local
1209 TmpInst.setOpcode(PPC::CP_COPY); in ProcessInstruction()
1210 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1211 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1212 TmpInst.addOperand(MCOperand::createImm(Opcode == PPC::CP_COPYx ? 0 : 1)); in ProcessInstruction()
1214 Inst = TmpInst; in ProcessInstruction()
1219 MCInst TmpInst; in ProcessInstruction() local
1220 TmpInst.setOpcode(Opcode == PPC::CP_PASTEx ? in ProcessInstruction()
1222 TmpInst.addOperand(Inst.getOperand(0)); in ProcessInstruction()
1223 TmpInst.addOperand(Inst.getOperand(1)); in ProcessInstruction()
1224 TmpInst.addOperand(MCOperand::createImm(Opcode == PPC::CP_PASTEx ? 0 : 1)); in ProcessInstruction()
1226 Inst = TmpInst; in ProcessInstruction()