aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-10-10 14:40:55 -0700
committeriximeow <me@iximeow.net>2021-10-10 14:40:55 -0700
commited5c76a0f8e92656539f305b9b7ea5e032517f36 (patch)
treecdb68a927f2f6fbe5fea284464e3b1d09cf02a60 /test
parent148fc10ed26fb025ceb291ae6c03515ee578cbeb (diff)
support endbr{32,64}
Diffstat (limited to 'test')
-rw-r--r--test/long_mode/mod.rs3
-rw-r--r--test/protected_mode/mod.rs3
-rw-r--r--test/real_mode/mod.rs3
3 files changed, 9 insertions, 0 deletions
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]");