From d7208834963c46a6da74a3837d9e82bad33dfd7f Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 21 Aug 2021 14:03:08 -0700 Subject: fix incorrect decoding of 0x9*-series instructions with rex.b --- test/long_mode/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs index 61ea63d..015f1c6 100644 --- a/test/long_mode/mod.rs +++ b/test/long_mode/mod.rs @@ -1176,8 +1176,10 @@ fn test_mov() { fn test_xchg() { test_display(&[0x90], "nop"); test_display(&[0x91], "xchg eax, ecx"); - test_display(&[0x4f, 0x91], "xchg r8, r9"); + test_display(&[0x4f, 0x91], "xchg rax, r9"); test_display(&[0x66, 0x91], "xchg ax, cx"); + test_display(&[0x4f, 0x90], "xchg rax, r8"); + test_display(&[0x41, 0x90], "xchg eax, r8d"); } #[test] -- cgit v1.1