aboutsummaryrefslogtreecommitdiff
path: root/test/armv8/a64.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-10-21 13:54:40 -0700
committeriximeow <me@iximeow.net>2021-10-21 13:54:40 -0700
commiteadc1ab0ceb5b3cd5f88b696d72b5c0592a63da5 (patch)
tree1cfcb78315648b467d9f6a146dc0f57cd043e1cf /test/armv8/a64.rs
parent80737e150dbc143e95b2b1c995d087822dda9a0b (diff)
ccm{n,p}
Diffstat (limited to 'test/armv8/a64.rs')
-rw-r--r--test/armv8/a64.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/armv8/a64.rs b/test/armv8/a64.rs
index 0e25c93..5b480df 100644
--- a/test/armv8/a64.rs
+++ b/test/armv8/a64.rs
@@ -287,6 +287,14 @@ fn test_decode_mul() {
}
#[test]
+fn test_decode_ccm() {
+ test_display([0x00, 0xa8, 0x42, 0x3a], "ccmn w0, 0x2, 0x0, ge");
+ test_display([0x00, 0xa8, 0x42, 0xfa], "ccmp x0, 0x2, 0x0, ge");
+ test_display([0x00, 0xa0, 0x42, 0xfa], "ccmp x0, x2, 0x0, ge");
+ test_display([0x85, 0x80, 0x42, 0xfa], "ccmp x4, x2, 0x5, hi");
+}
+
+#[test]
fn test_decode_chrome_entrypoint() {
// 1400 instructions from the entrypoint of a chrome binary, sorted by
// instruction word for no good reason.