diff options
Diffstat (limited to 'test/long_mode/mod.rs')
-rw-r--r-- | test/long_mode/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs index 0830c2d..c3933ab 100644 --- a/test/long_mode/mod.rs +++ b/test/long_mode/mod.rs @@ -1137,6 +1137,14 @@ fn test_mov() { } #[test] +fn test_xchg() { + test_display(&[0x90], "nop"); + test_display(&[0x91], "xchg eax, ecx"); + test_display(&[0x4f, 0x91], "xchg r8, r9"); + test_display(&[0x66, 0x91], "xchg ax, cx"); +} + +#[test] fn test_stack() { test_display(&[0x66, 0x41, 0x50], "push r8w"); } |