mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-11-23 08:27:24 +03:00
[arm] Add ExtractValue for Maybe of Thumb LowGPR operand.
This commit is contained in:
parent
7d12033f0c
commit
0069d3c907
@ -108,3 +108,9 @@ instance ExtractValue ARM.ARM T32Operand.LowGPR (BVType 32) where
|
||||
|
||||
instance ToRegister T32Operand.LowGPR Reg.ARMReg (BVType 32) where
|
||||
toRegister = Reg.ARM_GP . T32Operand.unLowGPR
|
||||
|
||||
instance ExtractValue ARM.ARM (Maybe T32Operand.LowGPR) (BVType 32) where
|
||||
extractValue mgpr =
|
||||
case mgpr of
|
||||
Just r -> extractValue r
|
||||
Nothing -> return $ MC.BVValue NR.knownNat 0
|
||||
|
Loading…
Reference in New Issue
Block a user