Home | History | Annotate | Download | only in MCTargetDesc

Lines Matching defs:Imm8

165   /// getT2AddrModeImm8s4OpValue - Return encoding info for 'reg +/- imm8<<2'
171 /// getT2AddrModeImm0_1020s4OpValue - Return encoding info for 'reg + imm8<<2'
177 /// getT2Imm8s4OpValue - Return encoding info for '+/- imm8<<2'
253 /// getAddrMode5OpValue - Return encoding info for 'reg +/- (imm8 << 2)' operand.
258 /// getAddrMode5FP16OpValue - Return encoding info for 'reg +/- (imm8 << 1)' operand.
922 /// '+/- imm8<<2' operand.
935 // {7-0} = imm8
936 int32_t Imm8 = MI.getOperand(OpIdx).getImm();
937 bool isAdd = Imm8 >= 0;
940 if (Imm8 < 0)
941 Imm8 = -(uint32_t)Imm8;
944 Imm8 /= 4;
946 uint32_t Binary = Imm8 & 0xff;
954 /// 'reg +/- imm8<<2' operand.
961 // {7-0} = imm8
962 unsigned Reg, Imm8;
968 Imm8 = 0;
978 isAdd = EncodeAddrModeOpValues(MI, OpIdx, Reg, Imm8, Fixups, STI);
986 uint32_t Binary = (Imm8 >> 2) & 0xff;
995 /// 'reg + imm8<<2' operand.
1001 // {7-0} = imm8
1005 unsigned Imm8 = MO1.getImm();
1006 return (Reg << 8) | Imm8;
1138 // {9} 1 == imm8, 0 == Rm
1147 uint32_t Imm8 = ARM_AM::getAM3Offset(Imm);
1148 // if reg +/- reg, Rm will be non-zero. Otherwise, we have reg +/- imm8
1150 Imm8 = CTX.getRegisterInfo()->getEncodingValue(MO.getReg());
1151 return Imm8 | (isAdd << 8) | (isImm << 9);
1158 // {13} 1 == imm8, 0 == Rm
1183 uint32_t Imm8 = ARM_AM::getAM3Offset(Imm);
1184 // if reg +/- reg, Rm will be non-zero. Otherwise, we have reg +/- imm8
1186 Imm8 = CTX.getRegisterInfo()->getEncodingValue(MO1.getReg());
1187 return (Rn << 9) | Imm8 | (isAdd << 8) | (isImm << 13);
1196 // {7-0} = imm8
1232 /// getAddrMode5OpValue - Return encoding info for 'reg +/- (imm8 << 2)' operand.
1239 // {7-0} = imm8
1240 unsigned Reg, Imm8;
1246 Imm8 = 0;
1260 EncodeAddrModeOpValues(MI, OpIdx, Reg, Imm8, Fixups, STI);
1261 isAdd = ARM_AM::getAM5Op(Imm8) == ARM_AM::add;
1264 uint32_t Binary = ARM_AM::getAM5Offset(Imm8);
1272 /// getAddrMode5FP16OpValue - Return encoding info for 'reg +/- (imm8 << 1)' operand.
1279 // {7-0} = imm8
1280 unsigned Reg, Imm8;
1286 Imm8 = 0;
1300 EncodeAddrModeOpValues(MI, OpIdx, Reg, Imm8, Fixups, STI);
1301 isAdd = ARM_AM::getAM5Op(Imm8) == ARM_AM::add;
1304 uint32_t Binary = ARM_AM::getAM5Offset(Imm8);