From ed5c76a0f8e92656539f305b9b7ea5e032517f36 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 10 Oct 2021 14:40:55 -0700 Subject: support endbr{32,64} --- test/long_mode/mod.rs | 3 +++ test/protected_mode/mod.rs | 3 +++ test/real_mode/mod.rs | 3 +++ 3 files changed, 9 insertions(+) (limited to 'test') diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs index dab4e91..1efa74e 100644 --- a/test/long_mode/mod.rs +++ b/test/long_mode/mod.rs @@ -2677,6 +2677,9 @@ fn prefixed_f20f() { fn prefixed_f30f() { test_display(&[0xf3, 0x0f, 0x16, 0xcf], "movshdup xmm1, xmm7"); test_display(&[0xf3, 0x4d, 0x0f, 0x16, 0xcf], "movshdup xmm9, xmm15"); + test_display(&[0xf3, 0x0f, 0x1e, 0xfa], "endbr64"); + test_display(&[0xf3, 0x0f, 0x1e, 0xfb], "endbr32"); + test_display(&[0xf3, 0x0f, 0x1e, 0xfc], "nop esp, edi"); } #[test] diff --git a/test/protected_mode/mod.rs b/test/protected_mode/mod.rs index 41ecbb7..4b8ca8d 100644 --- a/test/protected_mode/mod.rs +++ b/test/protected_mode/mod.rs @@ -2361,6 +2361,9 @@ fn prefixed_f20f() { #[test] fn prefixed_f30f() { test_display(&[0xf3, 0x0f, 0x16, 0xcf], "movshdup xmm1, xmm7"); + test_display(&[0xf3, 0x0f, 0x1e, 0xfa], "endbr64"); + test_display(&[0xf3, 0x0f, 0x1e, 0xfb], "endbr32"); + test_display(&[0xf3, 0x0f, 0x1e, 0xfc], "nop esp, edi"); } #[test] diff --git a/test/real_mode/mod.rs b/test/real_mode/mod.rs index dfbe4e8..6dcc3a2 100644 --- a/test/real_mode/mod.rs +++ b/test/real_mode/mod.rs @@ -17828,6 +17828,9 @@ fn test_real_mode() { test_display(&[0xf3, 0x0f, 0x16, 0x0f], "movshdup xmm1, xmmword [bx]"); test_display(&[0xf3, 0x0f, 0x16, 0xcf], "movshdup xmm1, xmm7"); test_display(&[0xf3, 0x0f, 0x16, 0xcf], "movshdup xmm1, xmm7"); + test_display(&[0xf3, 0x0f, 0x1e, 0xfa], "endbr64"); + test_display(&[0xf3, 0x0f, 0x1e, 0xfb], "endbr32"); + test_display(&[0xf3, 0x0f, 0x1e, 0xfc], "nop sp, di"); test_display(&[0xf3, 0x0f, 0x21, 0xc8], "mov eax, dr1"); test_display(&[0xf3, 0x0f, 0x2a, 0x00], "cvtsi2ss xmm0, dword [bx + si]"); test_display(&[0xf3, 0x0f, 0x2a, 0x01], "cvtsi2ss xmm0, dword [bx + di]"); -- cgit v1.1