summaryrefslogtreecommitdiffhomepage
path: root/vm.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-06-08 13:02:46 +0200
committerJo-Philipp Wich <jo@mein.io>2021-06-08 13:54:50 +0200
commit9872f652114c826c37ac6d9d92202c84943c5f23 (patch)
tree53265a1152b02f6f65524f0965138364f71698a1 /vm.c
parent4e410c3411f73da6d27b28ce057159cda7b50b66 (diff)
vm: add support for I_LE and I_GE instructions
Since we need to ensure that NaN values are properly handled, we cannot transform `x <= y` and `x >= y` into `!(x > y)` and `!(x < y)` respectively. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 44fef6a..9d97c0c 100644
--- a/vm.c
+++ b/vm.c
@@ -2124,7 +2124,9 @@ uc_vm_execute_chunk(uc_vm *vm)
case I_EQ:
case I_NE:
case I_LT:
+ case I_LE:
case I_GT:
+ case I_GE:
uc_vm_insn_rel(vm, insn);
break;