diff options
| author | Rusty Wagner <rusty@vector35.com> | 2017-05-03 23:37:30 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2017-05-03 23:37:30 -0400 |
| commit | 26c8f70fd837baec98bcf2aac89ae658c5590013 (patch) | |
| tree | c7bf02f87133b36c40e756f63bbf570a6bdbd3cc /lowlevelil.cpp | |
| parent | 04474d6ae818ddfa9978ffac6f1cdcaae56a87b5 (diff) | |
Adding IL instruction for truncating result to smaller value
Diffstat (limited to 'lowlevelil.cpp')
| -rw-r--r-- | lowlevelil.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lowlevelil.cpp b/lowlevelil.cpp index d266c2c9..0b2837f1 100644 --- a/lowlevelil.cpp +++ b/lowlevelil.cpp @@ -326,15 +326,21 @@ ExprId LowLevelILFunction::Not(size_t size, ExprId a, uint32_t flags) } -ExprId LowLevelILFunction::SignExtend(size_t size, ExprId a) +ExprId LowLevelILFunction::SignExtend(size_t size, ExprId a, uint32_t flags) { - return AddExpr(LLIL_SX, size, 0, a); + return AddExpr(LLIL_SX, size, flags, a); } -ExprId LowLevelILFunction::ZeroExtend(size_t size, ExprId a) +ExprId LowLevelILFunction::ZeroExtend(size_t size, ExprId a, uint32_t flags) { - return AddExpr(LLIL_ZX, size, 0, a); + return AddExpr(LLIL_ZX, size, flags, a); +} + + +ExprId LowLevelILFunction::LowPart(size_t size, ExprId a, uint32_t flags) +{ + return AddExpr(LLIL_LOW_PART, size, flags, a); } |
