• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/AsmParser/

Lines Matching refs:TmpInst

733     MCInst TmpInst;
734 TmpInst.setOpcode((Opcode == PPC::DCBTx || Opcode == PPC::DCBTT) ?
736 TmpInst.addOperand(MCOperand::createImm(
738 TmpInst.addOperand(Inst.getOperand(0));
739 TmpInst.addOperand(Inst.getOperand(1));
740 Inst = TmpInst;
745 MCInst TmpInst;
746 TmpInst.setOpcode(PPC::DCBT);
747 TmpInst.addOperand(Inst.getOperand(2));
748 TmpInst.addOperand(Inst.getOperand(0));
749 TmpInst.addOperand(Inst.getOperand(1));
750 Inst = TmpInst;
755 MCInst TmpInst;
756 TmpInst.setOpcode(PPC::DCBTST);
757 TmpInst.addOperand(Inst.getOperand(2));
758 TmpInst.addOperand(Inst.getOperand(0));
759 TmpInst.addOperand(Inst.getOperand(1));
760 Inst = TmpInst;
772 MCInst TmpInst;
773 TmpInst.setOpcode(PPC::DCBF);
774 TmpInst.addOperand(MCOperand::createImm(L));
775 TmpInst.addOperand(Inst.getOperand(0));
776 TmpInst.addOperand(Inst.getOperand(1));
777 Inst = TmpInst;
781 MCInst TmpInst;
782 TmpInst.setOpcode(PPC::LA);
783 TmpInst.addOperand(Inst.getOperand(0));
784 TmpInst.addOperand(Inst.getOperand(2));
785 TmpInst.addOperand(Inst.getOperand(1));
786 Inst = TmpInst;
790 MCInst TmpInst;
791 TmpInst.setOpcode(PPC::ADDI);
792 TmpInst.addOperand(Inst.getOperand(0));
793 TmpInst.addOperand(Inst.getOperand(1));
794 addNegOperand(TmpInst, Inst.getOperand(2), getContext());
795 Inst = TmpInst;
799 MCInst TmpInst;
800 TmpInst.setOpcode(PPC::ADDIS);
801 TmpInst.addOperand(Inst.getOperand(0));
802 TmpInst.addOperand(Inst.getOperand(1));
803 addNegOperand(TmpInst, Inst.getOperand(2), getContext());
804 Inst = TmpInst;
808 MCInst TmpInst;
809 TmpInst.setOpcode(PPC::ADDIC);
810 TmpInst.addOperand(Inst.getOperand(0));
811 TmpInst.addOperand(Inst.getOperand(1));
812 addNegOperand(TmpInst, Inst.getOperand(2), getContext());
813 Inst = TmpInst;
817 MCInst TmpInst;
818 TmpInst.setOpcode(PPC::ADDIC_rec);
819 TmpInst.addOperand(Inst.getOperand(0));
820 TmpInst.addOperand(Inst.getOperand(1));
821 addNegOperand(TmpInst, Inst.getOperand(2), getContext());
822 Inst = TmpInst;
827 MCInst TmpInst;
830 TmpInst.setOpcode(Opcode == PPC::EXTLWI ? PPC::RLWINM : PPC::RLWINM_rec);
831 TmpInst.addOperand(Inst.getOperand(0));
832 TmpInst.addOperand(Inst.getOperand(1));
833 TmpInst.addOperand(MCOperand::createImm(B));
834 TmpInst.addOperand(MCOperand::createImm(0));
835 TmpInst.addOperand(MCOperand::createImm(N - 1));
836 Inst = TmpInst;
841 MCInst TmpInst;
844 TmpInst.setOpcode(Opcode == PPC::EXTRWI ? PPC::RLWINM : PPC::RLWINM_rec);
845 TmpInst.addOperand(Inst.getOperand(0));
846 TmpInst.addOperand(Inst.getOperand(1));
847 TmpInst.addOperand(MCOperand::createImm(B + N));
848 TmpInst.addOperand(MCOperand::createImm(32 - N));
849 TmpInst.addOperand(MCOperand::createImm(31));
850 Inst = TmpInst;
855 MCInst TmpInst;
858 TmpInst.setOpcode(Opcode == PPC::INSLWI ? PPC::RLWIMI : PPC::RLWIMI_rec);
859 TmpInst.addOperand(Inst.getOperand(0));
860 TmpInst.addOperand(Inst.getOperand(0));
861 TmpInst.addOperand(Inst.getOperand(1));
862 TmpInst.addOperand(MCOperand::createImm(32 - B));
863 TmpInst.addOperand(MCOperand::createImm(B));
864 TmpInst.addOperand(MCOperand::createImm((B + N) - 1));
865 Inst = TmpInst;
870 MCInst TmpInst;
873 TmpInst.setOpcode(Opcode == PPC::INSRWI ? PPC::RLWIMI : PPC::RLWIMI_rec);
874 TmpInst.addOperand(Inst.getOperand(0));
875 TmpInst.addOperand(Inst.getOperand(0));
876 TmpInst.addOperand(Inst.getOperand(1));
877 TmpInst.addOperand(MCOperand::createImm(32 - (B + N)));
878 TmpInst.addOperand(MCOperand::createImm(B));
879 TmpInst.addOperand(MCOperand::createImm((B + N) - 1));
880 Inst = TmpInst;
885 MCInst TmpInst;
887 TmpInst.setOpcode(Opcode == PPC::ROTRWI ? PPC::RLWINM : PPC::RLWINM_rec);
888 TmpInst.addOperand(Inst.getOperand(0));
889 TmpInst.addOperand(Inst.getOperand(1));
890 TmpInst.addOperand(MCOperand::createImm(32 - N));
891 TmpInst.addOperand(MCOperand::createImm(0));
892 TmpInst.addOperand(MCOperand::createImm(31));
893 Inst = TmpInst;
898 MCInst TmpInst;
900 TmpInst.setOpcode(Opcode == PPC::SLWI ? PPC::RLWINM : PPC::RLWINM_rec);
901 TmpInst.addOperand(Inst.getOperand(0));
902 TmpInst.addOperand(Inst.getOperand(1));
903 TmpInst.addOperand(MCOperand::createImm(N));
904 TmpInst.addOperand(MCOperand::createImm(0));
905 TmpInst.addOperand(MCOperand::createImm(31 - N));
906 Inst = TmpInst;
911 MCInst TmpInst;
913 TmpInst.setOpcode(Opcode == PPC::SRWI ? PPC::RLWINM : PPC::RLWINM_rec);
914 TmpInst.addOperand(Inst.getOperand(0));
915 TmpInst.addOperand(Inst.getOperand(1));
916 TmpInst.addOperand(MCOperand::createImm(32 - N));
917 TmpInst.addOperand(MCOperand::createImm(N));
918 TmpInst.addOperand(MCOperand::createImm(31));
919 Inst = TmpInst;
924 MCInst TmpInst;
926 TmpInst.setOpcode(Opcode == PPC::CLRRWI ? PPC::RLWINM : PPC::RLWINM_rec);
927 TmpInst.addOperand(Inst.getOperand(0));
928 TmpInst.addOperand(Inst.getOperand(1));
929 TmpInst.addOperand(MCOperand::createImm(0));
930 TmpInst.addOperand(MCOperand::createImm(0));
931 TmpInst.addOperand(MCOperand::createImm(31 - N));
932 Inst = TmpInst;
937 MCInst TmpInst;
940 TmpInst.setOpcode(Opcode == PPC::CLRLSLWI ? PPC::RLWINM : PPC::RLWINM_rec);
941 TmpInst.addOperand(Inst.getOperand(0));
942 TmpInst.addOperand(Inst.getOperand(1));
943 TmpInst.addOperand(MCOperand::createImm(N));
944 TmpInst.addOperand(MCOperand::createImm(B - N));
945 TmpInst.addOperand(MCOperand::createImm(31 - N));
946 Inst = TmpInst;
951 MCInst TmpInst;
954 TmpInst.setOpcode(Opcode == PPC::EXTLDI ? PPC::RLDICR : PPC::RLDICR_rec);
955 TmpInst.addOperand(Inst.getOperand(0));
956 TmpInst.addOperand(Inst.getOperand(1));
957 TmpInst.addOperand(MCOperand::createImm(B));
958 TmpInst.addOperand(MCOperand::createImm(N - 1));
959 Inst = TmpInst;
964 MCInst TmpInst;
967 TmpInst.setOpcode(Opcode == PPC::EXTRDI ? PPC::RLDICL : PPC::RLDICL_rec);
968 TmpInst.addOperand(Inst.getOperand(0));
969 TmpInst.addOperand(Inst.getOperand(1));
970 TmpInst.addOperand(MCOperand::createImm(B + N));
971 TmpInst.addOperand(MCOperand::createImm(64 - N));
972 Inst = TmpInst;
977 MCInst TmpInst;
980 TmpInst.setOpcode(Opcode == PPC::INSRDI ? PPC::RLDIMI : PPC::RLDIMI_rec);
981 TmpInst.addOperand(Inst.getOperand(0));
982 TmpInst.addOperand(Inst.getOperand(0));
983 TmpInst.addOperand(Inst.getOperand(1));
984 TmpInst.addOperand(MCOperand::createImm(64 - (B + N)));
985 TmpInst.addOperand(MCOperand::createImm(B));
986 Inst = TmpInst;
991 MCInst TmpInst;
993 TmpInst.setOpcode(Opcode == PPC::ROTRDI ? PPC::RLDICL : PPC::RLDICL_rec);
994 TmpInst.addOperand(Inst.getOperand(0));
995 TmpInst.addOperand(Inst.getOperand(1));
996 TmpInst.addOperand(MCOperand::createImm(64 - N));
997 TmpInst.addOperand(MCOperand::createImm(0));
998 Inst = TmpInst;
1003 MCInst TmpInst;
1005 TmpInst.setOpcode(Opcode == PPC::SLDI ? PPC::RLDICR : PPC::RLDICR_rec);
1006 TmpInst.addOperand(Inst.getOperand(0));
1007 TmpInst.addOperand(Inst.getOperand(1));
1008 TmpInst.addOperand(MCOperand::createImm(N));
1009 TmpInst.addOperand(MCOperand::createImm(63 - N));
1010 Inst = TmpInst;
1014 MCInst TmpInst;
1016 TmpInst.setOpcode(PPC::ADDPCIS);
1017 TmpInst.addOperand(Inst.getOperand(0));
1018 TmpInst.addOperand(MCOperand::createImm(-N));
1019 Inst = TmpInst;
1024 MCInst TmpInst;
1026 TmpInst.setOpcode(Opcode == PPC::SRDI ? PPC::RLDICL : PPC::RLDICL_rec);
1027 TmpInst.addOperand(Inst.getOperand(0));
1028 TmpInst.addOperand(Inst.getOperand(1));
1029 TmpInst.addOperand(MCOperand::createImm(64 - N));
1030 TmpInst.addOperand(MCOperand::createImm(N));
1031 Inst = TmpInst;
1036 MCInst TmpInst;
1038 TmpInst.setOpcode(Opcode == PPC::CLRRDI ? PPC::RLDICR : PPC::RLDICR_rec);
1039 TmpInst.addOperand(Inst.getOperand(0));
1040 TmpInst.addOperand(Inst.getOperand(1));
1041 TmpInst.addOperand(MCOperand::createImm(0));
1042 TmpInst.addOperand(MCOperand::createImm(63 - N));
1043 Inst = TmpInst;
1048 MCInst TmpInst;
1051 TmpInst.setOpcode(Opcode == PPC::CLRLSLDI ? PPC::RLDIC : PPC::RLDIC_rec);
1052 TmpInst.addOperand(Inst.getOperand(0));
1053 TmpInst.addOperand(Inst.getOperand(1));
1054 TmpInst.addOperand(MCOperand::createImm(N));
1055 TmpInst.addOperand(MCOperand::createImm(B - N));
1056 Inst = TmpInst;
1066 MCInst TmpInst;
1067 TmpInst.setOpcode(Opcode == PPC::RLWINMbm ? PPC::RLWINM : PPC::RLWINM_rec);
1068 TmpInst.addOperand(Inst.getOperand(0));
1069 TmpInst.addOperand(Inst.getOperand(1));
1070 TmpInst.addOperand(Inst.getOperand(2));
1071 TmpInst.addOperand(MCOperand::createImm(MB));
1072 TmpInst.addOperand(MCOperand::createImm(ME));
1073 Inst = TmpInst;
1083 MCInst TmpInst;
1084 TmpInst.setOpcode(Opcode == PPC::RLWIMIbm ? PPC::RLWIMI : PPC::RLWIMI_rec);
1085 TmpInst.addOperand(Inst.getOperand(0));
1086 TmpInst.addOperand(Inst.getOperand(0)); // The tied operand.
1087 TmpInst.addOperand(Inst.getOperand(1));
1088 TmpInst.addOperand(Inst.getOperand(2));
1089 TmpInst.addOperand(MCOperand::createImm(MB));
1090 TmpInst.addOperand(MCOperand::createImm(ME));
1091 Inst = TmpInst;
1101 MCInst TmpInst;
1102 TmpInst.setOpcode(Opcode == PPC::RLWNMbm ? PPC::RLWNM : PPC::RLWNM_rec);
1103 TmpInst.addOperand(Inst.getOperand(0));
1104 TmpInst.addOperand(Inst.getOperand(1));
1105 TmpInst.addOperand(Inst.getOperand(2));
1106 TmpInst.addOperand(MCOperand::createImm(MB));
1107 TmpInst.addOperand(MCOperand::createImm(ME));
1108 Inst = TmpInst;
1120 MCInst TmpInst;
1121 TmpInst.setOpcode(PPC::CP_COPY);
1122 TmpInst.addOperand(Inst.getOperand(0));
1123 TmpInst.addOperand(Inst.getOperand(1));
1124 TmpInst.addOperand(MCOperand::createImm(Opcode == PPC::CP_COPYx ? 0 : 1));
1126 Inst = TmpInst;
1131 MCInst TmpInst;
1132 TmpInst.setOpcode(Opcode == PPC::CP_PASTEx ? PPC::CP_PASTE
1134 TmpInst.addOperand(Inst.getOperand(0));
1135 TmpInst.addOperand(Inst.getOperand(1));
1136 TmpInst.addOperand(MCOperand::createImm(Opcode == PPC::CP_PASTEx ? 0 : 1));
1138 Inst = TmpInst;