• Home
  • Raw
  • Download

Lines Matching refs:Imm

115 static inline unsigned getSORegOpc(ARM_AM_ShiftOpc ShOp, unsigned Imm)  in getSORegOpc()  argument
117 return ShOp | (Imm << 3); in getSORegOpc()
132 static inline unsigned getSOImmValImm(unsigned Imm) in getSOImmValImm() argument
134 return Imm & 0xFF; in getSOImmValImm()
139 static inline unsigned getSOImmValRot(unsigned Imm) in getSOImmValRot() argument
141 return (Imm >> 8) * 2; in getSOImmValRot()
148 static inline unsigned getSOImmValRotate(unsigned Imm) in getSOImmValRotate() argument
153 if ((Imm & ~255U) == 0) return 0; in getSOImmValRotate()
156 TZ = CountTrailingZeros_32(Imm); in getSOImmValRotate()
163 if ((rotr32(Imm, RotAmt) & ~255U) == 0) in getSOImmValRotate()
168 if (Imm & 63U) { in getSOImmValRotate()
169 unsigned TZ2 = CountTrailingZeros_32(Imm & ~63U); in getSOImmValRotate()
171 if ((rotr32(Imm, RotAmt2) & ~255U) == 0) in getSOImmValRotate()
236 static inline unsigned getThumbImmValShift(unsigned Imm) in getThumbImmValShift() argument
240 if ((Imm & ~255U) == 0) return 0; in getThumbImmValShift()
243 return CountTrailingZeros_32(Imm); in getThumbImmValShift()
257 static inline unsigned getThumbImm16ValShift(unsigned Imm) in getThumbImm16ValShift() argument
261 if ((Imm & ~65535U) == 0) return 0; in getThumbImm16ValShift()
264 return CountTrailingZeros_32(Imm); in getThumbImm16ValShift()
295 unsigned u, Vs, Imm; in getT2SOImmValSplatVal() local
303 Imm = Vs & 0xff; in getT2SOImmValSplatVal()
305 u = Imm | (Imm << 16); in getT2SOImmValSplatVal()
309 return (((Vs == V) ? 1 : 2) << 8) | Imm; in getT2SOImmValSplatVal()
313 return (3 << 8) | Imm; in getT2SOImmValSplatVal()
367 static inline bool isT2SOImmTwoPartVal (unsigned Imm) in isT2SOImmTwoPartVal() argument
369 unsigned V = Imm; in isT2SOImmTwoPartVal()
383 V = Imm; in isT2SOImmTwoPartVal()
395 static inline unsigned getT2SOImmTwoPartFirst(unsigned Imm) in getT2SOImmTwoPartFirst() argument
400 unsigned V = rotr32 (~(unsigned int)255, getT2SOImmValRotate(Imm)) & Imm; in getT2SOImmTwoPartFirst()
405 if (getT2SOImmValSplatVal(Imm & 0xff00ff00U) != -1) in getT2SOImmTwoPartFirst()
406 return Imm & 0xff00ff00U; in getT2SOImmTwoPartFirst()
410 return Imm & 0x00ff00ffU; in getT2SOImmTwoPartFirst()
413 static inline unsigned getT2SOImmTwoPartSecond(unsigned Imm) in getT2SOImmTwoPartSecond() argument
416 Imm ^= getT2SOImmTwoPartFirst(Imm); in getT2SOImmTwoPartSecond()
420 return Imm; in getT2SOImmTwoPartSecond()
643 static inline float getFPImmFloat(unsigned Imm) in getFPImmFloat() argument
651 uint8_t Sign = (Imm >> 7) & 0x1; in getFPImmFloat()
652 uint8_t Exp = (Imm >> 4) & 0x7; in getFPImmFloat()
653 uint8_t Mantissa = Imm & 0xf; in getFPImmFloat()