aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-08-21 14:03:08 -0700
committeriximeow <me@iximeow.net>2021-08-21 14:03:08 -0700
commitd7208834963c46a6da74a3837d9e82bad33dfd7f (patch)
tree6df2525647cc29b719ce1db376d271b801c47371 /test
parente4131e4eb64595d9b24493eb31a9af4c5e21b1eb (diff)
fix incorrect decoding of 0x9*-series instructions with rex.b
Diffstat (limited to 'test')
-rw-r--r--test/long_mode/mod.rs4
1 files changed, 3 insertions, 1 deletions
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]