From eadc1ab0ceb5b3cd5f88b696d72b5c0592a63da5 Mon Sep 17 00:00:00 2001 From: iximeow Date: Thu, 21 Oct 2021 13:54:40 -0700 Subject: ccm{n,p} --- test/armv8/a64.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/armv8') 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. -- cgit v1.1