aboutsummaryrefslogtreecommitdiff
path: root/test/long_mode
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2023-12-16 14:12:17 -0800
committeriximeow <me@iximeow.net>2023-12-16 14:44:07 -0800
commit4d2e196e616162726c6211abc46c043078425322 (patch)
tree5188c8b4bd59ce46872cb34422e4681ab461e65e /test/long_mode
parentfafbd6d37329e4b9fd862ed86767a943086334be (diff)
abnormal memory sizes for keylocker instructions are not bugs
new `does_not_decode_invalid_registers` fuzzer found other bugs! the 384-bit accesses for 128b keylocker instructions are an otherwise-unknown size and had a memory size of `BUG`. they are not bugs. give the memory size a real name.
Diffstat (limited to 'test/long_mode')
-rw-r--r--test/long_mode/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs
index 25a303c..6b04be2 100644
--- a/test/long_mode/mod.rs
+++ b/test/long_mode/mod.rs
@@ -3442,6 +3442,11 @@ fn test_sevsnp() {
test_display(&[0xf2, 0x0f, 0x01, 0xfe], "rmpupdate");
}
+#[test]
+fn test_keylocker() {
+ test_display(&[0xf3, 0x0f, 0x38, 0xdd, 0x03], "aesdec128kl xmm0, m384b [rbx]");
+}
+
// some test cases are best just lifted from llvm or gcc.
#[test]
fn from_llvm() {