summaryrefslogtreecommitdiff
path: root/lowlevelil.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2017-05-03 23:37:30 -0400
committerRusty Wagner <rusty@vector35.com>2017-05-03 23:37:30 -0400
commit26c8f70fd837baec98bcf2aac89ae658c5590013 (patch)
treec7bf02f87133b36c40e756f63bbf570a6bdbd3cc /lowlevelil.cpp
parent04474d6ae818ddfa9978ffac6f1cdcaae56a87b5 (diff)
Adding IL instruction for truncating result to smaller value
Diffstat (limited to 'lowlevelil.cpp')
-rw-r--r--lowlevelil.cpp14
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);
}