about summary refs log tree commit diff
path: root/patches/e9patch-check-mov-imm.patch
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2025-01-14 17:12:42 +0900
committerNguyễn Gia Phong <cnx@loang.net>2025-01-14 23:32:35 +0900
commit910d416135b15a56e01209c87be4b03f16c1e77c (patch)
tree4cf7d80a8af3db92888c475e49bedf23a849d2e9 /patches/e9patch-check-mov-imm.patch
parentd533ad582e38aaf4fe6f50e864f4e6999ec943a5 (diff)
downloadloftix-910d416135b15a56e01209c87be4b03f16c1e77c.tar.gz
Update E9Patch
Diffstat (limited to 'patches/e9patch-check-mov-imm.patch')
-rw-r--r--patches/e9patch-check-mov-imm.patch16
1 files changed, 15 insertions, 1 deletions
diff --git a/patches/e9patch-check-mov-imm.patch b/patches/e9patch-check-mov-imm.patch
index 697aa0f..1bf1f45 100644
--- a/patches/e9patch-check-mov-imm.patch
+++ b/patches/e9patch-check-mov-imm.patch
@@ -50,7 +50,8 @@ References: https://github.com/zyantific/zydis/discussions/538
  test/regtest/types.exp            | 2 +-
  test/regtest/zero_flags.exp       | 2 +-
  test/regtest/zero_flags_2.exp     | 2 +-
- 42 files changed, 42 insertions(+), 43 deletions(-)
+ test/regtest/zero_rflags.exp      | 2 +-
+ 43 files changed, 43 insertions(+), 44 deletions(-)
 
 diff --git a/test/regtest/after.exp b/test/regtest/after.exp
 index 9c64090..5b3b067 100644
@@ -573,3 +574,16 @@ index 6ea2c37..ac678cc 100644
  cmp %rax, %rbx	# ZERO FLAGS -Z-P-
  jz 0xa000122	# ZERO FLAGS -----
  Illegal instruction
+diff --git a/test/regtest/zero_rflags.exp b/test/regtest/zero_rflags.exp
+index 6ea2c37..ac678cc 100644
+--- a/test/regtest/zero_rflags.exp
++++ b/test/regtest/zero_rflags.exp
+@@ -2,7 +2,7 @@ jnz 0xa0002ae	# ZERO FLAGS -Z-P-
+ push %r15	# ZERO FLAGS -----
+ js 0xa000106	# ZERO FLAGS -----
+ movq 0x5e(%rip), %rax	# ZERO FLAGS -----
+-mov $0x8877665544332211, %rbx	# ZERO FLAGS -----
++mov $-0x778899aabbccddef, %rbx	# ZERO FLAGS -----
+ cmp %rax, %rbx	# ZERO FLAGS -Z-P-
+ jz 0xa000122	# ZERO FLAGS -----
+ Illegal instruction