[arm] Add support for imm5 operand type.

This commit is contained in:
Kevin Quick 2018-03-07 10:07:51 -08:00
parent cf9b6c5a30
commit af590fc7db
No known key found for this signature in database
GPG Key ID: E6D7733599CC0A21

View File

@ -46,6 +46,9 @@ instance ExtractValue ARM.ARM A32Operand.Pred (BVType 4) where
instance ExtractValue ARM.ARM A32Operand.SBit (BVType 1) where
extractValue = return . MC.BVValue NR.knownNat . toInteger . A32Operand.sBitToBits
instance ExtractValue ARM.ARM A32Operand.Imm5 (BVType 5) where
extractValue = return . MC.BVValue NR.knownNat . toInteger . A32Operand.imm5ToBits
instance ExtractValue ARM.ARM A32Operand.BranchTarget (BVType 32) where
extractValue = return . MC.BVValue NR.knownNat . toInteger . A32Operand.branchTargetToBits